Commit e45b7fa2 authored by Len Brown's avatar Len Brown

sched: clarify commment for TS_POLLING

TS_POLLING set tells the scheduler an idle_task will poll
need_resched() to look for work.

TS_POLLING clear tells resched_task() and wake_up_idle_cpu()
that the remote CPU's idle_task is now sleeping in idle,
and thus requires a reschedule interrupt notice work.

Update the description of TS_POLLING to reflect how it works.
"idle task polling need_resched, skip sending interrupt"
Wordsmithing-by: default avatarMilton Miller <miltonm@bga.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
parent 541adf7c
...@@ -241,8 +241,8 @@ static inline struct thread_info *current_thread_info(void) ...@@ -241,8 +241,8 @@ static inline struct thread_info *current_thread_info(void)
#define TS_USEDFPU 0x0001 /* FPU was used by this task #define TS_USEDFPU 0x0001 /* FPU was used by this task
this quantum (SMP) */ this quantum (SMP) */
#define TS_COMPAT 0x0002 /* 32bit syscall active (64BIT)*/ #define TS_COMPAT 0x0002 /* 32bit syscall active (64BIT)*/
#define TS_POLLING 0x0004 /* true if in idle loop #define TS_POLLING 0x0004 /* idle task polling need_resched,
and not sleeping */ skip sending interrupt */
#define TS_RESTORE_SIGMASK 0x0008 /* restore signal mask in do_signal() */ #define TS_RESTORE_SIGMASK 0x0008 /* restore signal mask in do_signal() */
#define TS_XSAVE 0x0010 /* Use xsave/xrstor */ #define TS_XSAVE 0x0010 /* Use xsave/xrstor */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment