mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-12 17:34:31 +00:00
[S390] smp: remove unused typedef and defines
Remove unused typedef, defines, update copyright, remove unneeded includes, remove unneeded ifdefs. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
52b169c864
commit
c20c89a692
1 changed files with 10 additions and 44 deletions
|
@ -1,57 +1,22 @@
|
||||||
/*
|
/*
|
||||||
* include/asm-s390/smp.h
|
* Copyright IBM Corp. 1999,2009
|
||||||
*
|
* Author(s): Denis Joseph Barrow,
|
||||||
* S390 version
|
* Martin Schwidefsky <schwidefsky@de.ibm.com>,
|
||||||
* Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
|
* Heiko Carstens <heiko.carstens@de.ibm.com>,
|
||||||
* Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com),
|
|
||||||
* Martin Schwidefsky (schwidefsky@de.ibm.com)
|
|
||||||
* Heiko Carstens (heiko.carstens@de.ibm.com)
|
|
||||||
*/
|
*/
|
||||||
#ifndef __ASM_SMP_H
|
#ifndef __ASM_SMP_H
|
||||||
#define __ASM_SMP_H
|
#define __ASM_SMP_H
|
||||||
|
|
||||||
#include <linux/threads.h>
|
#ifdef CONFIG_SMP
|
||||||
#include <linux/cpumask.h>
|
|
||||||
#include <linux/bitops.h>
|
|
||||||
|
|
||||||
#if defined(__KERNEL__) && defined(CONFIG_SMP) && !defined(__ASSEMBLY__)
|
|
||||||
|
|
||||||
#include <asm/lowcore.h>
|
|
||||||
#include <asm/sigp.h>
|
|
||||||
#include <asm/ptrace.h>
|
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
|
#include <asm/sigp.h>
|
||||||
/*
|
|
||||||
s390 specific smp.c headers
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
int intresting;
|
|
||||||
sigp_ccode ccode;
|
|
||||||
__u32 status;
|
|
||||||
__u16 cpu;
|
|
||||||
} sigp_info;
|
|
||||||
|
|
||||||
extern void machine_restart_smp(char *);
|
extern void machine_restart_smp(char *);
|
||||||
extern void machine_halt_smp(void);
|
extern void machine_halt_smp(void);
|
||||||
extern void machine_power_off_smp(void);
|
extern void machine_power_off_smp(void);
|
||||||
|
|
||||||
#define NO_PROC_ID 0xFF /* No processor magic marker */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This magic constant controls our willingness to transfer
|
|
||||||
* a process across CPUs. Such a transfer incurs misses on the L1
|
|
||||||
* cache, and on a P6 or P5 with multiple L2 caches L2 hits. My
|
|
||||||
* gut feeling is this will vary by board in value. For a board
|
|
||||||
* with separate L2 cache it probably depends also on the RSS, and
|
|
||||||
* for a board with shared L2 cache it ought to decay fast as other
|
|
||||||
* processes are run.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define PROC_CHANGE_PENALTY 20 /* Schedule penalty */
|
|
||||||
|
|
||||||
#define raw_smp_processor_id() (S390_lowcore.cpu_nr)
|
#define raw_smp_processor_id() (S390_lowcore.cpu_nr)
|
||||||
#define cpu_logical_map(cpu) (cpu)
|
|
||||||
|
|
||||||
extern int __cpu_disable (void);
|
extern int __cpu_disable (void);
|
||||||
extern void __cpu_die (unsigned int cpu);
|
extern void __cpu_die (unsigned int cpu);
|
||||||
|
@ -64,7 +29,9 @@ extern int smp_cpu_polarization[];
|
||||||
extern void arch_send_call_function_single_ipi(int cpu);
|
extern void arch_send_call_function_single_ipi(int cpu);
|
||||||
extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
|
extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
|
||||||
|
|
||||||
#endif
|
extern union save_area *zfcpdump_save_areas[NR_CPUS + 1];
|
||||||
|
|
||||||
|
#endif /* CONFIG_SMP */
|
||||||
|
|
||||||
#ifdef CONFIG_HOTPLUG_CPU
|
#ifdef CONFIG_HOTPLUG_CPU
|
||||||
extern int smp_rescan_cpus(void);
|
extern int smp_rescan_cpus(void);
|
||||||
|
@ -72,5 +39,4 @@ extern int smp_rescan_cpus(void);
|
||||||
static inline int smp_rescan_cpus(void) { return 0; }
|
static inline int smp_rescan_cpus(void) { return 0; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern union save_area *zfcpdump_save_areas[NR_CPUS + 1];
|
#endif /* __ASM_SMP_H */
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue