diff options
author | Helge Deller <deller@gmx.de> | 2022-03-29 14:15:29 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-03-29 21:37:12 +0200 |
commit | db2b0d76cdc4e781d32bf26d0c649ca2fe608c4e (patch) | |
tree | 36b7cf9d67d48b39850a6585e15343da2361066c /arch/parisc/include/asm/pdc.h | |
parent | parisc: Move disable_sr_hashing_asm() into .text section (diff) | |
download | linux-db2b0d76cdc4e781d32bf26d0c649ca2fe608c4e.tar.xz linux-db2b0d76cdc4e781d32bf26d0c649ca2fe608c4e.zip |
parisc: Add PDC locking functions for rendezvous code
Add pdc_cpu_rendezvous_lock() and pdc_cpu_rendezvous_unlock()
to lock PDC while CPU is transitioning into rendezvous state.
This is needed, because the transition phase may take up to 8 seconds.
Add pdc_pat_get_PDC_entrypoint() to get PDC entry point for current CPU.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/asm/pdc.h')
-rw-r--r-- | arch/parisc/include/asm/pdc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/pdc.h b/arch/parisc/include/asm/pdc.h index 18b957a8630d..b643092d4b98 100644 --- a/arch/parisc/include/asm/pdc.h +++ b/arch/parisc/include/asm/pdc.h @@ -94,6 +94,9 @@ int pdc_sti_call(unsigned long func, unsigned long flags, unsigned long glob_cfg); int __pdc_cpu_rendezvous(void); +void pdc_cpu_rendezvous_lock(void); +void pdc_cpu_rendezvous_unlock(void); + static inline char * os_id_to_string(u16 os_id) { switch(os_id) { case OS_ID_NONE: return "No OS"; |