parisc: add __pdc_cpu_rendezvous()
When stopping SMP cpus send them into rendezvous, so we can start them again later (when kexec'ing a new kernel). Signed-off-by: Sven Schnelle <svens@stackframe.org> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
08e697808f
commit
507efd63d9
@ -311,6 +311,19 @@ int pdc_chassis_disp(unsigned long disp)
|
||||
return retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* pdc_cpu_rendenzvous - Stop currently executing CPU
|
||||
* @retval: -1 on error, 0 on success
|
||||
*/
|
||||
int __pdc_cpu_rendezvous(void)
|
||||
{
|
||||
if (is_pdc_pat())
|
||||
return mem_pdc_call(PDC_PAT_CPU, PDC_PAT_CPU_RENDEZVOUS);
|
||||
else
|
||||
return mem_pdc_call(PDC_PROC, 1, 0);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* pdc_chassis_warn - Fetches chassis warnings
|
||||
* @retval: -1 on error, 0 on success
|
||||
|
Reference in New Issue
Block a user