2005-04-16 22:20:36 +00:00
|
|
|
/*
|
2009-12-07 11:52:07 +00:00
|
|
|
* Copyright IBM Corp. 1999,2009
|
|
|
|
* Author(s): Denis Joseph Barrow,
|
|
|
|
* Martin Schwidefsky <schwidefsky@de.ibm.com>,
|
|
|
|
* Heiko Carstens <heiko.carstens@de.ibm.com>,
|
2005-04-16 22:20:36 +00:00
|
|
|
*/
|
|
|
|
#ifndef __ASM_SMP_H
|
|
|
|
#define __ASM_SMP_H
|
|
|
|
|
2009-12-07 11:52:07 +00:00
|
|
|
#ifdef CONFIG_SMP
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-04-30 11:38:45 +00:00
|
|
|
#include <asm/system.h>
|
2009-12-07 11:52:07 +00:00
|
|
|
#include <asm/sigp.h>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-02-05 20:16:47 +00:00
|
|
|
extern void machine_restart_smp(char *);
|
|
|
|
extern void machine_halt_smp(void);
|
|
|
|
extern void machine_power_off_smp(void);
|
|
|
|
|
2009-03-26 14:24:42 +00:00
|
|
|
#define raw_smp_processor_id() (S390_lowcore.cpu_nr)
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
extern int __cpu_disable (void);
|
|
|
|
extern void __cpu_die (unsigned int cpu);
|
|
|
|
extern void cpu_die (void) __attribute__ ((noreturn));
|
|
|
|
extern int __cpu_up (unsigned int cpu);
|
|
|
|
|
2008-04-17 05:46:12 +00:00
|
|
|
extern struct mutex smp_cpu_state_mutex;
|
2008-04-17 05:46:13 +00:00
|
|
|
extern int smp_cpu_polarization[];
|
2008-04-17 05:46:12 +00:00
|
|
|
|
2008-12-25 12:38:39 +00:00
|
|
|
extern void arch_send_call_function_single_ipi(int cpu);
|
2009-09-24 15:34:45 +00:00
|
|
|
extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
|
2008-12-25 12:38:39 +00:00
|
|
|
|
2009-12-07 11:52:07 +00:00
|
|
|
extern union save_area *zfcpdump_save_areas[NR_CPUS + 1];
|
|
|
|
|
|
|
|
#endif /* CONFIG_SMP */
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-04-30 11:38:37 +00:00
|
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
|
|
|
extern int smp_rescan_cpus(void);
|
|
|
|
#else
|
|
|
|
static inline int smp_rescan_cpus(void) { return 0; }
|
|
|
|
#endif
|
|
|
|
|
2009-12-07 11:52:07 +00:00
|
|
|
#endif /* __ASM_SMP_H */
|