]> xenbits.xensource.com Git - xen.git/commit
x86/mwait_idle: stop using driver_data for static flags
authorLen Brown <len.brown@intel.com>
Mon, 22 Apr 2013 12:00:16 +0000 (14:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Apr 2013 12:00:16 +0000 (14:00 +0200)
commit4e96e50c36fe32aa3e5d5da370f58da89fd35cb3
tree89edc2a66387e56dac649d4c03058c018e3b462a
parent9be8a4447103d92843fcfeaad8be42408c90e9a9
x86/mwait_idle: stop using driver_data for static flags

The (Linux) commit 4202735e8ab6ecfb0381631a0d0b58fefe0bd4e2
(cpuidle: Split cpuidle_state structure and move per-cpu statistics fields)
observed that the MWAIT flags for Cn on every processor to date were the
same, and created get_driver_data() to supply them.

Unfortunately, that assumption is false, going forward.
So here we restore the MWAIT flags to the cpuidle_state table.
However, instead restoring the old "driver_data" field,
we put the flags into the existing "flags" field,
where they probalby should have lived all along.

This patch does not change any operation.

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/cpu/mwait-idle.c