-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: Refine flagging pending IPIs
Instead of marking a flag that indicates an IPI must be broadcast to the other CPUs, let the bits of the kernel's pending_ipi field indicate if an IPI must be sent to a specific CPU. When the IPI is needed to force a reschedule because of time slicing it is easy to identify the target CPU. When a thread is made ready or if its priority changes, then the CPUs that need to receive an IPI are those that are currently executing a lower priority thread. Though this does not change IPIs from being broadcast to targeted, in some circumstances it may result in the broadcasting of fewer IPIs. Signed-off-by: Peter Mitsis <[email protected]>
- Loading branch information
1 parent
9077b92
commit 36ef61b
Showing
2 changed files
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters