/* List of Systems that need fixup instructions around power-down instruction */ staticunsignedint pmc_leon_fixup_ids[] = {
AEROFLEX_UT699,
GAISLER_GR712RC,
LEON4_NEXTREME1, 0
};
/* *CPUidlecallbackfunction *See.../arch/sparc/kernel/process.c
*/ staticvoid pmc_leon_idle(void)
{ /* Interrupts need to be enabled to not hang the CPU */
raw_local_irq_enable();
/* For systems without power-down, this will be no-op */
__asm__ __volatile__ ("wr %g0, %asr19\n\t");
raw_local_irq_disable();
}
/* Install LEON Power Down function */ staticint __init leon_pmc_install(void)
{ if (sparc_cpu_model == sparc_leon) { /* Assign power management IDLE handler */ if (pmc_leon_need_fixup())
sparc_idle = pmc_leon_idle_fixup; else
sparc_idle = pmc_leon_idle;
printk(KERN_INFO "leon: power management initialized\n");
}
return0;
}
/* This driver is not critical to the boot process, don't care *ifinitializedlate.
*/
late_initcall(leon_pmc_install);
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-09-27)
¤
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.