Skip to content
Commit 11bd67db authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

kernel/idle: Use normal idle in SMP when IPI is available



Now that we have a working IPI framework, there's no reason for the
default spin loop for the SMP idle thread.  Just use the default
platform idle and send an IPI when a new thread is readied.

Long term, this can be optimized if necessary (e.g. only send the IPI
to idling CPUs, or check priorities, etc...), but for a 2-cpu system
this is a very reasonable default.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 6c283ca3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment