2 * include/asm-s390/smp.h
5 * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
6 * Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com),
7 * Martin Schwidefsky (schwidefsky@de.ibm.com)
12 #include <linux/config.h>
14 #if defined(__KERNEL__) && defined(CONFIG_SMP) && !defined(__ASSEMBLY__)
16 #include <asm/lowcore.h>
19 s390 specific smp.c headers
29 extern int smp_call_function_on(void (*func) (void *info), void *info,
30 int nonatomic, int wait, int cpu);
32 extern unsigned long cpu_online_map;
34 #define NO_PROC_ID 0xFF /* No processor magic marker */
37 * This magic constant controls our willingness to transfer
38 * a process across CPUs. Such a transfer incurs misses on the L1
39 * cache, and on a P6 or P5 with multiple L2 caches L2 hits. My
40 * gut feeling is this will vary by board in value. For a board
41 * with separate L2 cache it probably depends also on the RSS, and
42 * for a board with shared L2 cache it ought to decay fast as other
46 #define PROC_CHANGE_PENALTY 20 /* Schedule penalty */
48 #define smp_processor_id() (current->processor)
50 extern __inline__ int cpu_logical_map(int cpu)
55 extern __inline__ int cpu_number_map(int cpu)
60 extern __inline__ __u16 hard_smp_processor_id(void)
64 __asm__ ("stap %0\n" : "=m" (cpu_address));
68 #define cpu_logical_map(cpu) (cpu)
73 #define smp_call_function_on(func,info,nonatomic,wait,cpu) ({ 0; })