diff options
Diffstat (limited to 'arch/powerpc/include/asm/processor.h')
-rw-r--r-- | arch/powerpc/include/asm/processor.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index b585bff1a022..8e2d0371fe1e 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h | |||
@@ -385,6 +385,36 @@ static inline unsigned long get_clean_sp(struct pt_regs *regs, int is_32) | |||
385 | extern unsigned long cpuidle_disable; | 385 | extern unsigned long cpuidle_disable; |
386 | enum idle_boot_override {IDLE_NO_OVERRIDE = 0, IDLE_POWERSAVE_OFF}; | 386 | enum idle_boot_override {IDLE_NO_OVERRIDE = 0, IDLE_POWERSAVE_OFF}; |
387 | 387 | ||
388 | extern int powersave_nap; /* set if nap mode can be used in idle loop */ | ||
389 | void cpu_idle_wait(void); | ||
390 | |||
391 | #ifdef CONFIG_PSERIES_IDLE | ||
392 | extern void update_smt_snooze_delay(int snooze); | ||
393 | extern int pseries_notify_cpuidle_add_cpu(int cpu); | ||
394 | #else | ||
395 | static inline void update_smt_snooze_delay(int snooze) {} | ||
396 | static inline int pseries_notify_cpuidle_add_cpu(int cpu) { return 0; } | ||
397 | #endif | ||
398 | |||
399 | extern void flush_instruction_cache(void); | ||
400 | extern void hard_reset_now(void); | ||
401 | extern void poweroff_now(void); | ||
402 | extern int fix_alignment(struct pt_regs *); | ||
403 | extern void cvt_fd(float *from, double *to); | ||
404 | extern void cvt_df(double *from, float *to); | ||
405 | extern void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val); | ||
406 | |||
407 | #ifdef CONFIG_PPC64 | ||
408 | /* | ||
409 | * We handle most unaligned accesses in hardware. On the other hand | ||
410 | * unaligned DMA can be very expensive on some ppc64 IO chips (it does | ||
411 | * powers of 2 writes until it reaches sufficient alignment). | ||
412 | * | ||
413 | * Based on this we disable the IP header alignment in network drivers. | ||
414 | */ | ||
415 | #define NET_IP_ALIGN 0 | ||
416 | #endif | ||
417 | |||
388 | #endif /* __KERNEL__ */ | 418 | #endif /* __KERNEL__ */ |
389 | #endif /* __ASSEMBLY__ */ | 419 | #endif /* __ASSEMBLY__ */ |
390 | #endif /* _ASM_POWERPC_PROCESSOR_H */ | 420 | #endif /* _ASM_POWERPC_PROCESSOR_H */ |