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:
2026-05-19 23:52:38 +03:00
parent 24c37e7381
commit 376e4b4c45
2 changed files with 15 additions and 6 deletions

View File

@@ -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();