[patch 01/20] idle: Move x86ism out of generic code
From: Thomas Gleixner
Date: Fri Feb 26 2016 - 13:50:36 EST
We have an arch specific callback here already.
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
arch/x86/kernel/process.c | 12 ++++++++++++
kernel/sched/idle.c | 15 ---------------
2 files changed, 12 insertions(+), 15 deletions(-)
@@ -271,6 +271,18 @@ void exit_idle(void)
+ * If we're the non-boot CPU, nothing set the stack canary up
+ * for us. The boot CPU already has it initialized but no harm
+ * in doing it again. This is a good place for updating it, as
+ * we wont ever return from this function (so the invalid
+ * canaries already on the stack wont ever trigger).
@@ -275,21 +275,6 @@ static void cpu_idle_loop(void)
void cpu_startup_entry(enum cpuhp_state state)
- * This #ifdef needs to die, but it's too late in the cycle to
- * make this generic (arm and sh have never invoked the canary
- * init for the non boot cpus!). Will be fixed in 3.11
- * If we're the non-boot CPU, nothing set the stack canary up
- * for us. The boot CPU already has it initialized but no harm
- * in doing it again. This is a good place for updating it, as
- * we wont ever return from this function (so the invalid
- * canaries already on the stack wont ever trigger).