7 #include <linux/kernel.h>
8 #include <linux/module.h>
12 #include <linux/sched.h>
17 #include <asm/special_insns.h>
70 #define NATIVE_CSTATE_BEYOND_HALT (2)
72 static long acpi_processor_ffh_cstate_probe_cpu(
void *_cx)
76 unsigned int eax,
ebx,
ecx, edx;
77 unsigned int edx_part;
78 unsigned int cstate_type;
79 unsigned int num_cstate_subtype;
90 if (num_cstate_subtype < (cx->
address & MWAIT_SUBSTATE_MASK)) {
102 if (!mwait_supported[cstate_type]) {
103 mwait_supported[cstate_type] = 1;
105 "Monitor-Mwait will be used to enter C-%d "
106 "state\n", cx->
type);
134 retval = work_on_cpu(cpu, acpi_processor_ffh_cstate_probe_cpu, cx);
165 if (!need_resched()) {
187 static int __init ffh_cstate_init(
void)
197 static void __exit ffh_cstate_exit(
void)
200 cpu_cstate_entry =
NULL;