/* * If the events are really what we want to wakeup the CPU, wake it up * otherwise put the CPU asleep again.
*/ staticvoid wait_for_wakeup_events(void)
{ while (!wakeup_loongson())
writel(readl(LOONGSON_CHIPCFG) & ~0x7, LOONGSON_CHIPCFG);
}
/* * Stop all perf counters * * $24 is the control register of Loongson perf counter
*/ staticinlinevoid stop_perf_counters(void)
{
__write_64bit_c0_register($24, 0, 0);
}
/* processor specific suspend */
loongson_suspend_enter();
mach_resume();
return 0;
}
staticint loongson_pm_valid_state(suspend_state_t state)
{ switch (state) { case PM_SUSPEND_ON: case PM_SUSPEND_STANDBY: case PM_SUSPEND_MEM: return 1;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.