forked from Minki/linux
707827f338
This patch implements a back-end cpuidle driver for pSeries based on pseries_dedicated_idle_loop and pseries_shared_idle_loop routines. The driver is built only if CONFIG_CPU_IDLE is set. This cpuidle driver uses global registration of idle states and not per-cpu. Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com> Signed-off-by: Trinabh Gupta <g.trinabh@gmail.com> Signed-off-by: Arun R Bharadwaj <arun.r.bharadwaj@gmail.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
/*
|
|
* Copyright 2006 IBM Corporation.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef _PSERIES_PSERIES_H
|
|
#define _PSERIES_PSERIES_H
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
struct device_node;
|
|
|
|
extern void request_event_sources_irqs(struct device_node *np,
|
|
irq_handler_t handler, const char *name);
|
|
|
|
#include <linux/of.h>
|
|
|
|
extern void __init fw_feature_init(const char *hypertas, unsigned long len);
|
|
|
|
struct pt_regs;
|
|
|
|
extern int pSeries_system_reset_exception(struct pt_regs *regs);
|
|
extern int pSeries_machine_check_exception(struct pt_regs *regs);
|
|
|
|
#ifdef CONFIG_SMP
|
|
extern void smp_init_pseries_mpic(void);
|
|
extern void smp_init_pseries_xics(void);
|
|
#else
|
|
static inline void smp_init_pseries_mpic(void) { };
|
|
static inline void smp_init_pseries_xics(void) { };
|
|
#endif
|
|
|
|
#ifdef CONFIG_KEXEC
|
|
extern void setup_kexec_cpu_down_xics(void);
|
|
extern void setup_kexec_cpu_down_mpic(void);
|
|
#else
|
|
static inline void setup_kexec_cpu_down_xics(void) { }
|
|
static inline void setup_kexec_cpu_down_mpic(void) { }
|
|
#endif
|
|
|
|
extern void pSeries_final_fixup(void);
|
|
|
|
/* Poweron flag used for enabling auto ups restart */
|
|
extern unsigned long rtas_poweron_auto;
|
|
|
|
/* Provided by HVC VIO */
|
|
extern void hvc_vio_init_early(void);
|
|
|
|
/* Dynamic logical Partitioning/Mobility */
|
|
extern void dlpar_free_cc_nodes(struct device_node *);
|
|
extern void dlpar_free_cc_property(struct property *);
|
|
extern struct device_node *dlpar_configure_connector(u32);
|
|
extern int dlpar_attach_node(struct device_node *);
|
|
extern int dlpar_detach_node(struct device_node *);
|
|
|
|
/* Snooze Delay, pseries_idle */
|
|
DECLARE_PER_CPU(long, smt_snooze_delay);
|
|
|
|
#endif /* _PSERIES_PSERIES_H */
|