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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  *    Copyright IBM Corp. 1999, 2012
  4  *    Author(s): Denis Joseph Barrow,
  5  *               Martin Schwidefsky <schwidefsky@de.ibm.com>,
  6  */
  7 #ifndef __ASM_SMP_H
  8 #define __ASM_SMP_H
  9 
 10 #include <asm/sigp.h>
 11 #include <asm/lowcore.h>
 12 #include <asm/processor.h>
 13 
 14 #define raw_smp_processor_id()  (get_lowcore()->cpu_nr)
 15 
 16 extern struct mutex smp_cpu_state_mutex;
 17 extern unsigned int smp_cpu_mt_shift;
 18 extern unsigned int smp_cpu_mtid;
 19 extern __vector128 __initdata boot_cpu_vector_save_area[__NUM_VXRS];
 20 extern cpumask_t cpu_setup_mask;
 21 
 22 extern int __cpu_up(unsigned int cpu, struct task_struct *tidle);
 23 
 24 extern void arch_send_call_function_single_ipi(int cpu);
 25 extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
 26 
 27 extern void smp_call_ipl_cpu(void (*func)(void *), void *);
 28 extern void smp_emergency_stop(void);
 29 
 30 extern int smp_find_processor_id(u16 address);
 31 extern int smp_store_status(int cpu);
 32 extern void smp_save_dump_ipl_cpu(void);
 33 extern void smp_save_dump_secondary_cpus(void);
 34 extern void smp_yield_cpu(int cpu);
 35 extern void smp_cpu_set_polarization(int cpu, int val);
 36 extern int smp_cpu_get_polarization(int cpu);
 37 extern int smp_cpu_get_cpu_address(int cpu);
 38 extern void smp_fill_possible_mask(void);
 39 extern void smp_detect_cpus(void);
 40 
 41 static inline void smp_stop_cpu(void)
 42 {
 43         u16 pcpu = stap();
 44 
 45         for (;;) {
 46                 __pcpu_sigp(pcpu, SIGP_STOP, 0, NULL);
 47                 cpu_relax();
 48         }
 49 }
 50 
 51 /* Return thread 0 CPU number as base CPU */
 52 static inline int smp_get_base_cpu(int cpu)
 53 {
 54         return cpu - (cpu % (smp_cpu_mtid + 1));
 55 }
 56 
 57 static inline void smp_cpus_done(unsigned int max_cpus)
 58 {
 59 }
 60 
 61 extern int smp_rescan_cpus(bool early);
 62 extern void __noreturn cpu_die(void);
 63 extern void __cpu_die(unsigned int cpu);
 64 extern int __cpu_disable(void);
 65 extern void schedule_mcck_handler(void);
 66 void notrace smp_yield_cpu(int cpu);
 67 
 68 #endif /* __ASM_SMP_H */
 69 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php