0001
0002
0003
0004
0005
0006
0007 #ifndef _SPARC64_SMP_H
0008 #define _SPARC64_SMP_H
0009
0010 #include <linux/threads.h>
0011 #include <asm/asi.h>
0012 #include <asm/starfire.h>
0013 #include <asm/spitfire.h>
0014
0015 #ifndef __ASSEMBLY__
0016
0017 #include <linux/cpumask.h>
0018 #include <linux/cache.h>
0019
0020 #endif
0021
0022 #ifdef CONFIG_SMP
0023
0024 #ifndef __ASSEMBLY__
0025
0026
0027
0028
0029
0030 #include <linux/bitops.h>
0031 #include <linux/atomic.h>
0032 #include <asm/percpu.h>
0033
0034 DECLARE_PER_CPU(cpumask_t, cpu_sibling_map);
0035 extern cpumask_t cpu_core_map[NR_CPUS];
0036
0037 void smp_init_cpu_poke(void);
0038 void scheduler_poke(void);
0039
0040 void arch_send_call_function_single_ipi(int cpu);
0041 void arch_send_call_function_ipi_mask(const struct cpumask *mask);
0042
0043
0044
0045
0046
0047 int hard_smp_processor_id(void);
0048 #define raw_smp_processor_id() (current_thread_info()->cpu)
0049
0050 void smp_fill_in_cpu_possible_map(void);
0051 void smp_fill_in_sib_core_maps(void);
0052 void cpu_play_dead(void);
0053
0054 void smp_fetch_global_regs(void);
0055 void smp_fetch_global_pmu(void);
0056
0057 struct seq_file;
0058 void smp_bogo(struct seq_file *);
0059 void smp_info(struct seq_file *);
0060
0061 void smp_callin(void);
0062 void cpu_panic(void);
0063 void smp_synchronize_tick_client(void);
0064 void smp_capture(void);
0065 void smp_release(void);
0066
0067 #ifdef CONFIG_HOTPLUG_CPU
0068 int __cpu_disable(void);
0069 void __cpu_die(unsigned int cpu);
0070 #endif
0071
0072 #endif
0073
0074 #else
0075
0076 #define hard_smp_processor_id() 0
0077 #define smp_fill_in_sib_core_maps() do { } while (0)
0078 #define smp_fetch_global_regs() do { } while (0)
0079 #define smp_fetch_global_pmu() do { } while (0)
0080 #define smp_fill_in_cpu_possible_map() do { } while (0)
0081 #define smp_init_cpu_poke() do { } while (0)
0082 #define scheduler_poke() do { } while (0)
0083
0084 #endif
0085
0086 #endif