preempt_disable() imbalance in take_machine_down()? [linux-2.6.18-xen.hg]
Hi,
please excuse the lame question.
Looking at take_machine_down() and __xen_suspend() in "drivers/xen/core/machine_reboot.c", assuming "fast_suspend" is false, it seems that after the loop in take_machine_down() completes, preempt_enable() is never called. Is this intentional? If so, how/why does it work?
Thank you very much,
Laszlo Ersek
Quoted 5 lines
Quoted 1 line
Quoted 1 line · Laszlo Ersek
Looking at
take_machine_down()and__xen_suspend()in "drivers/xen/core/machine_reboot.c", assuming "fast_suspend" is false, it seems that after the loop intake_machine_down()completes,preempt_enable()is never called. Is this intentional?
Probably not.
Quoted 1 line
If so, how/why does it work?
Because PREEMPT depends on !XEN in kernel/Kconfig.preempt.
Jan