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 unsigned long cpu_online_map;
31 #define NO_PROC_ID 0xFF /* No processor magic marker */
34 * This magic constant controls our willingness to transfer
35 * a process across CPUs. Such a transfer incurs misses on the L1
36 * cache, and on a P6 or P5 with multiple L2 caches L2 hits. My
37 * gut feeling is this will vary by board in value. For a board
38 * with separate L2 cache it probably depends also on the RSS, and
39 * for a board with shared L2 cache it ought to decay fast as other
43 #define PROC_CHANGE_PENALTY 20 /* Schedule penalty */
45 #define smp_processor_id() (current->processor)
47 extern __inline__ int cpu_logical_map(int cpu)
52 extern __inline__ int cpu_number_map(int cpu)
57 extern __inline__ __u16 hard_smp_processor_id(void)
61 __asm__ ("stap %0\n" : "=m" (cpu_address));
65 #define cpu_logical_map(cpu) (cpu)