)]}'
{
  "commit": "a7c2bb8279d20d853e43c34584eaf2b039de8026",
  "tree": "bba0120f1bfddbc1a1236a2d8b5a6823e9bc928b",
  "parents": [
    "da9bef6735d3c5c1c0cd16717acee18d56dd59f5"
  ],
  "author": {
    "name": "Signed-off-by: Darren Hart",
    "email": "dvhltc@us.ibm.com",
    "time": "Wed Aug 04 18:28:33 2010 +0000"
  },
  "committer": {
    "name": "Benjamin Herrenschmidt",
    "email": "benh@kernel.crashing.org",
    "time": "Tue Aug 24 15:26:29 2010 +1000"
  },
  "message": "powerpc: Re-enable preemption before cpu_die()\n\nstart_secondary() is called shortly after _start and also via\n\ncpu_idle()-\u003ecpu_die()-\u003epseries_mach_cpu_die()\n\nstart_secondary() expects a preempt_count() of 0. pseries_mach_cpu_die() is\ncalled via the cpu_idle() routine with preemption disabled, resulting in the\nfollowing repeating message during rapid cpu offline/online tests\nwith CONFIG_PREEMPT\u003dy:\n\nBUG: scheduling while atomic: swapper/0/0x00000002\nModules linked in: autofs4 binfmt_misc dm_mirror dm_region_hash dm_log [last unloaded: scsi_wait_scan]\nCall Trace:\n[c00000010e7079c0] [c0000000000133ec] .show_stack+0xd8/0x218 (unreliable)\n[c00000010e707aa0] [c0000000006a47f0] .dump_stack+0x28/0x3c\n[c00000010e707b20] [c00000000006e7a4] .__schedule_bug+0x7c/0x9c\n[c00000010e707bb0] [c000000000699d9c] .schedule+0x104/0x800\n[c00000010e707cd0] [c000000000015b24] .cpu_idle+0x1c4/0x1d8\n[c00000010e707d70] [c0000000006aa1b4] .start_secondary+0x398/0x3d4\n[c00000010e707e30] [c000000000008278] .start_secondary_resume+0x10/0x14\n\nMove the cpu_die() call inside the existing preemption enabled block of\ncpu_idle(). This is safe as the idle task is affined to a single CPU so the\ndebug_smp_processor_id() tests (from cpu_should_die()) won\u0027t trigger as we are\nin a \"migration disabled\" region.\n\nSigned-off-by: Darren Hart \u003cdvhltc@us.ibm.com\u003e\nAcked-by: Will Schmidt \u003cwill_schmidt@vnet.ibm.com\u003e\nCc: Thomas Gleixner \u003ctglx@linutronix.de\u003e\nCc: Nathan Fontenot \u003cnfont@austin.ibm.com\u003e\nCc: Robert Jennings \u003crcj@linux.vnet.ibm.com\u003e\nCc: Brian King \u003cbrking@linux.vnet.ibm.com\u003e\nSigned-off-by: Benjamin Herrenschmidt \u003cbenh@kernel.crashing.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "049dda60e4750296e7b890e752e6420d0d1fb769",
      "old_mode": 33188,
      "old_path": "arch/powerpc/kernel/idle.c",
      "new_id": "39a2baa6ad58aec28a3c1d0782753569bbb51f6e",
      "new_mode": 33188,
      "new_path": "arch/powerpc/kernel/idle.c"
    }
  ]
}
