Quantcast
Channel: lkml.org : Pallipadi, Venkatesh
Viewing all articles
Browse latest Browse all 864

[PATCH 2/4] x86: Mwait idle optimization to avoid CAL+RES IPIs -v2

$
0
0
Venkatesh Pallipadi writes: (Summary) +} + +static inline void exit_ipiless_idle(void) +{ + if (!test_and_clear_thread_flag(TIF_IN_IPILESS_IDLE)) { + /* + * Flag was already cleared, indicating that there is + * a pending IPIless wakeup. /* Needed for bh handling */ + } +} + +static inline int try_ipiless_wakeup(int cpu) +{ + struct thread_info *idle_ti = task_thread_info(idle_task(cpu)); +} + +#else +static inline void do_ipiless_pending_work(void) { } +static inline void enter_ipiless_idle(void) { } +static inline void exit_ipiless_idle(void) { } + +static inline int is_ipiless_wakeup_pending(void) +{ + return need_resched();

Viewing all articles
Browse latest Browse all 864

Trending Articles