]> xenbits.xensource.com Git - xen.git/commit
x86/cpuidle: publish new states only after fully initializing them
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Jan 2014 10:41:53 +0000 (11:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Jan 2014 10:41:53 +0000 (11:41 +0100)
commitb28c7b29999bf6bfcbe8ff977a15dbacf0f1ad84
tree0a1fa4596ac0ff6192c4b8de8ac49e170cf8f9f7
parent91d190682d788da9d824fd50ced989739a40c6d3
x86/cpuidle: publish new states only after fully initializing them

Since state information coming from Dom0 can arrive at any time, on
any CPU, we ought to make sure that a new state is fully initialized
before the target CPU might be using it.

Once touching that code, also do minor cleanup: A missing (but benign)
"break" and some white space adjustments.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Liu Jinsong <jinsong.liu@intel.com>
master commit: 4ca6f9f0377a30755a299cc60a6d44ab6c3b34d0
master date: 2013-12-11 10:30:02 +0100
xen/arch/x86/acpi/cpu_idle.c