void
cpu_need_resched(
struct cpu_info *ci
, int flags
)
)
function is the machine-independent interface for the scheduler to
notify machine-dependent code that a context switch from the current
LWP, on the cpu
ci
,
is required.
This event may occur if a higher priority LWP appears on the run
queue or if the current LWP has exceeded its time slice.
If
RESCHED_IMMED
flag is specified in
flags
,
machine-dependent code should make a context switch happen as soon as possible.
In that case, for example, if
ci
is not the current processor,
cpu_need_resched()
typically issues an inter processor call to the processor to make it
notice the need of a context switch as soon as possible.
)
function will perform the following operations:
).