Kernel: Reduce the number of sent IPIs
Only send an IPI when the target processors don't have pending messages. This basically gets rid of TLB shootdowns from showing up in profiles. Before they were taking maybe >10% kernel time :^D
This commit is contained in:
@@ -132,7 +132,7 @@ namespace Kernel
|
||||
static void handle_ipi();
|
||||
|
||||
static void handle_smp_messages();
|
||||
static void send_smp_message(ProcessorID, const SMPMessage&, bool send_ipi = true);
|
||||
static bool send_smp_message(ProcessorID, const SMPMessage&, bool send_ipi = true);
|
||||
static void broadcast_smp_message(const SMPMessage&);
|
||||
|
||||
static void load_segments();
|
||||
|
||||
Reference in New Issue
Block a user