#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/acpi.h>
#include <linux/cpu.h>
#include <linux/sched.h>
#include <acpi/processor.h>
#include <asm/mwait.h>
#include <asm/special_insns.h>
void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags,
unsigned int cpu)
{ … }
EXPORT_SYMBOL(…);
struct cstate_entry { … };
static struct cstate_entry __percpu *cpu_cstate_entry;
static short mwait_supported[ACPI_PROCESSOR_MAX_POWER];
#define NATIVE_CSTATE_BEYOND_HALT …
static long acpi_processor_ffh_cstate_probe_cpu(void *_cx)
{ … }
int acpi_processor_ffh_cstate_probe(unsigned int cpu,
struct acpi_processor_cx *cx, struct acpi_power_register *reg)
{ … }
EXPORT_SYMBOL_GPL(…);
void __cpuidle acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cx)
{ … }
EXPORT_SYMBOL_GPL(…);
static int __init ffh_cstate_init(void)
{ … }
static void __exit ffh_cstate_exit(void)
{ … }
arch_initcall(ffh_cstate_init);
__exitcall(…);