diff options
Diffstat (limited to 'arch/powerpc/include/asm/processor.h')
-rw-r--r-- | arch/powerpc/include/asm/processor.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index 3351bcf42f2d..706ac5df546f 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h | |||
@@ -164,6 +164,9 @@ struct thread_struct { | |||
164 | unsigned long rtas_sp; /* stack pointer for when in RTAS */ | 164 | unsigned long rtas_sp; /* stack pointer for when in RTAS */ |
165 | #endif | 165 | #endif |
166 | #endif | 166 | #endif |
167 | #if defined(CONFIG_PPC_BOOK3S_32) && defined(CONFIG_PPC_KUAP) | ||
168 | unsigned long kuap; /* opened segments for user access */ | ||
169 | #endif | ||
167 | /* Debug Registers */ | 170 | /* Debug Registers */ |
168 | struct debug_reg debug; | 171 | struct debug_reg debug; |
169 | struct thread_fp_state fp_state; | 172 | struct thread_fp_state fp_state; |
@@ -411,14 +414,17 @@ static inline unsigned long get_clean_sp(unsigned long sp, int is_32) | |||
411 | } | 414 | } |
412 | #endif | 415 | #endif |
413 | 416 | ||
417 | /* asm stubs */ | ||
418 | extern unsigned long isa300_idle_stop_noloss(unsigned long psscr_val); | ||
419 | extern unsigned long isa300_idle_stop_mayloss(unsigned long psscr_val); | ||
420 | extern unsigned long isa206_idle_insn_mayloss(unsigned long type); | ||
421 | |||
414 | extern unsigned long cpuidle_disable; | 422 | extern unsigned long cpuidle_disable; |
415 | enum idle_boot_override {IDLE_NO_OVERRIDE = 0, IDLE_POWERSAVE_OFF}; | 423 | enum idle_boot_override {IDLE_NO_OVERRIDE = 0, IDLE_POWERSAVE_OFF}; |
416 | 424 | ||
417 | extern int powersave_nap; /* set if nap mode can be used in idle loop */ | 425 | extern int powersave_nap; /* set if nap mode can be used in idle loop */ |
418 | extern unsigned long power7_idle_insn(unsigned long type); /* PNV_THREAD_NAP/etc*/ | 426 | |
419 | extern void power7_idle_type(unsigned long type); | 427 | extern void power7_idle_type(unsigned long type); |
420 | extern unsigned long power9_idle_stop(unsigned long psscr_val); | ||
421 | extern unsigned long power9_offline_stop(unsigned long psscr_val); | ||
422 | extern void power9_idle_type(unsigned long stop_psscr_val, | 428 | extern void power9_idle_type(unsigned long stop_psscr_val, |
423 | unsigned long stop_psscr_mask); | 429 | unsigned long stop_psscr_mask); |
424 | 430 | ||