Release 4.14 arch/s390/include/asm/smp.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright IBM Corp. 1999, 2012
* Author(s): Denis Joseph Barrow,
* Martin Schwidefsky <schwidefsky@de.ibm.com>,
* Heiko Carstens <heiko.carstens@de.ibm.com>,
*/
#ifndef __ASM_SMP_H
#define __ASM_SMP_H
#include <asm/sigp.h>
#ifdef CONFIG_SMP
#include <asm/lowcore.h>
#define raw_smp_processor_id() (S390_lowcore.cpu_nr)
extern struct mutex smp_cpu_state_mutex;
extern unsigned int smp_cpu_mt_shift;
extern unsigned int smp_cpu_mtid;
extern __vector128 __initdata boot_cpu_vector_save_area[__NUM_VXRS];
extern int __cpu_up(unsigned int cpu, struct task_struct *tidle);
extern void arch_send_call_function_single_ipi(int cpu);
extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
extern void smp_call_online_cpu(void (*func)(void *), void *);
extern void smp_call_ipl_cpu(void (*func)(void *), void *);
extern int smp_find_processor_id(u16 address);
extern int smp_store_status(int cpu);
extern void smp_save_dump_cpus(void);
extern int smp_vcpu_scheduled(int cpu);
extern void smp_yield_cpu(int cpu);
extern void smp_cpu_set_polarization(int cpu, int val);
extern int smp_cpu_get_polarization(int cpu);
extern void smp_fill_possible_mask(void);
extern void smp_detect_cpus(void);
#else /* CONFIG_SMP */
#define smp_cpu_mtid 0
static inline void smp_call_ipl_cpu(void (*func)(void *), void *data)
{
func(data);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 18 | 69.23% | 1 | 50.00% |
Gerald Schaefer | 8 | 30.77% | 1 | 50.00% |
Total | 26 | 100.00% | 2 | 100.00% |
static inline void smp_call_online_cpu(void (*func)(void *), void *data)
{
func(data);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 25 | 96.15% | 1 | 50.00% |
Martin Schwidefsky | 1 | 3.85% | 1 | 50.00% |
Total | 26 | 100.00% | 2 | 100.00% |
static inline int smp_find_processor_id(u16 address) { return 0; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 12 | 92.31% | 1 | 50.00% |
Heiko Carstens | 1 | 7.69% | 1 | 50.00% |
Total | 13 | 100.00% | 2 | 100.00% |
static inline int smp_store_status(int cpu) { return 0; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
static inline int smp_vcpu_scheduled(int cpu) { return 1; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
static inline void smp_yield_cpu(int cpu) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 9 | 100.00% | 1 | 100.00% |
Total | 9 | 100.00% | 1 | 100.00% |
static inline void smp_fill_possible_mask(void) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 7 | 87.50% | 1 | 50.00% |
Heiko Carstens | 1 | 12.50% | 1 | 50.00% |
Total | 8 | 100.00% | 2 | 100.00% |
static inline void smp_detect_cpus(void) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 8 | 100.00% | 1 | 100.00% |
Total | 8 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_SMP */
static inline void smp_stop_cpu(void)
{
u16 pcpu = stap();
for (;;) {
__pcpu_sigp(pcpu, SIGP_STOP, 0, NULL);
cpu_relax();
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 36 | 100.00% | 2 | 100.00% |
Total | 36 | 100.00% | 2 | 100.00% |
/* Return thread 0 CPU number as base CPU */
static inline int smp_get_base_cpu(int cpu)
{
return cpu - (cpu % (smp_cpu_mtid + 1));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 23 | 100.00% | 1 | 100.00% |
Total | 23 | 100.00% | 1 | 100.00% |
#ifdef CONFIG_HOTPLUG_CPU
extern int smp_rescan_cpus(void);
extern void __noreturn cpu_die(void);
extern void __cpu_die(unsigned int cpu);
extern int __cpu_disable(void);
#else
static inline int smp_rescan_cpus(void) { return 0; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 12 | 100.00% | 1 | 100.00% |
Total | 12 | 100.00% | 1 | 100.00% |
static inline void cpu_die(void) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 8 | 100.00% | 1 | 100.00% |
Total | 8 | 100.00% | 1 | 100.00% |
#endif
#endif /* __ASM_SMP_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 232 | 53.58% | 13 | 44.83% |
Martin Schwidefsky | 149 | 34.41% | 5 | 17.24% |
Linus Torvalds (pre-git) | 11 | 2.54% | 1 | 3.45% |
Michael Holzheu | 10 | 2.31% | 2 | 6.90% |
Gerald Schaefer | 8 | 1.85% | 1 | 3.45% |
Carsten Otte | 7 | 1.62% | 1 | 3.45% |
Rusty Russell | 5 | 1.15% | 1 | 3.45% |
Thomas Gleixner | 5 | 1.15% | 1 | 3.45% |
Linus Torvalds | 3 | 0.69% | 1 | 3.45% |
Greg Kroah-Hartman | 1 | 0.23% | 1 | 3.45% |
Ingo Molnar | 1 | 0.23% | 1 | 3.45% |
David Howells | 1 | 0.23% | 1 | 3.45% |
Total | 433 | 100.00% | 29 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.