SPARC/LEON: power down instruction different of different LEONs
The way a LEON is powered down is implemented differently depending on CHIP type. The AMBA Plug&Play system ID tells revision of GRLIB and CHIP. This is for example needed by the GR-LEON4-ITX board and the UT699. Previously the power down support for LEON was limited to SMP, now both SMP and UP systems use the instruction. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
684151a75b
commit
7279b82cb1
5 changed files with 97 additions and 17 deletions
|
@ -437,15 +437,6 @@ void __init leon_blackbox_current(unsigned *addr)
|
|||
|
||||
}
|
||||
|
||||
/*
|
||||
* CPU idle callback function
|
||||
* See .../arch/sparc/kernel/process.c
|
||||
*/
|
||||
void pmc_leon_idle(void)
|
||||
{
|
||||
__asm__ volatile ("mov %g0, %asr19");
|
||||
}
|
||||
|
||||
void __init leon_init_smp(void)
|
||||
{
|
||||
/* Patch ipi15 trap table */
|
||||
|
@ -456,13 +447,6 @@ void __init leon_init_smp(void)
|
|||
BTFIXUPSET_CALL(smp_cross_call, leon_cross_call, BTFIXUPCALL_NORM);
|
||||
BTFIXUPSET_CALL(__hard_smp_processor_id, __leon_processor_id,
|
||||
BTFIXUPCALL_NORM);
|
||||
|
||||
#ifndef PMC_NO_IDLE
|
||||
/* Assign power management IDLE handler */
|
||||
pm_idle = pmc_leon_idle;
|
||||
printk(KERN_INFO "leon: power management initialized\n");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SPARC_LEON */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue