16 #include <asm/i8259.h>
79 static void wait_for_wakeup_events(
void)
82 LOONGSON_CHIPCFG0 &= ~0x7;
90 static inline void stop_perf_counters(
void)
96 static void loongson_suspend_enter(
void)
98 static unsigned int cached_cpu_freq;
103 stop_perf_counters();
105 cached_cpu_freq = LOONGSON_CHIPCFG0;
108 LOONGSON_CHIPCFG0 &= ~0x7;
111 wait_for_wakeup_events();
113 LOONGSON_CHIPCFG0 = cached_cpu_freq;
130 loongson_suspend_enter();
151 .valid = loongson_pm_valid_state,
152 .enter = loongson_pm_enter,
155 static int __init loongson_pm_init(
void)