~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/s390/include/asm/smp.h

Version: ~ [ linux-5.10-rc1 ] ~ [ linux-5.9.1 ] ~ [ linux-5.8.16 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.72 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.152 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.202 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.240 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.240 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *    Copyright IBM Corp. 1999, 2012
  3  *    Author(s): Denis Joseph Barrow,
  4  *               Martin Schwidefsky <schwidefsky@de.ibm.com>,
  5  *               Heiko Carstens <heiko.carstens@de.ibm.com>,
  6  */
  7 #ifndef __ASM_SMP_H
  8 #define __ASM_SMP_H
  9 
 10 #ifdef CONFIG_SMP
 11 
 12 #include <asm/lowcore.h>
 13 
 14 #define raw_smp_processor_id()  (S390_lowcore.cpu_nr)
 15 
 16 extern struct mutex smp_cpu_state_mutex;
 17 extern struct save_area *zfcpdump_save_areas[NR_CPUS + 1];
 18 
 19 extern int __cpu_up(unsigned int cpu, struct task_struct *tidle);
 20 
 21 extern void arch_send_call_function_single_ipi(int cpu);
 22 extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
 23 
 24 extern void smp_call_online_cpu(void (*func)(void *), void *);
 25 extern void smp_call_ipl_cpu(void (*func)(void *), void *);
 26 
 27 extern int smp_find_processor_id(u16 address);
 28 extern int smp_store_status(int cpu);
 29 extern int smp_vcpu_scheduled(int cpu);
 30 extern void smp_yield_cpu(int cpu);
 31 extern void smp_yield(void);
 32 extern void smp_stop_cpu(void);
 33 extern void smp_cpu_set_polarization(int cpu, int val);
 34 extern int smp_cpu_get_polarization(int cpu);
 35 
 36 #else /* CONFIG_SMP */
 37 
 38 static inline void smp_call_ipl_cpu(void (*func)(void *), void *data)
 39 {
 40         func(data);
 41 }
 42 
 43 static inline void smp_call_online_cpu(void (*func)(void *), void *data)
 44 {
 45         func(data);
 46 }
 47 
 48 static inline int smp_find_processor_id(u16 address) { return 0; }
 49 static inline int smp_store_status(int cpu) { return 0; }
 50 static inline int smp_vcpu_scheduled(int cpu) { return 1; }
 51 static inline void smp_yield_cpu(int cpu) { }
 52 static inline void smp_yield(void) { }
 53 static inline void smp_stop_cpu(void) { }
 54 
 55 #endif /* CONFIG_SMP */
 56 
 57 #ifdef CONFIG_HOTPLUG_CPU
 58 extern int smp_rescan_cpus(void);
 59 extern void __noreturn cpu_die(void);
 60 extern void __cpu_die(unsigned int cpu);
 61 extern int __cpu_disable(void);
 62 #else
 63 static inline int smp_rescan_cpus(void) { return 0; }
 64 static inline void cpu_die(void) { }
 65 #endif
 66 
 67 #endif /* __ASM_SMP_H */
 68 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp