#
35a1ba79 |
|
27-Feb-2018 |
David Stevens <stevensd@google.com> |
[kernel][sched][x86] Use monitor/mwait when idle When rescheduling idle cpus, use monitor/mwait instead of relying on IPIs. This change adds some reschedule-specific arch hooks, instead of relying on the arch IPI hooks. The x86 percpu state includes a variable that tracks whether the cpu is running the idle thread. The idle thread monitors and mwaits on that variable. Then other threads can reschedule the idle cpu by clearing the monitored variable. ZX-1713 ZX-1293 #done Change-Id: I5f7bf073e3e5b6e1e5fa4febc412f52f40773e2d
|