0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef _SPARC_CPUDATA_H
0011 #define _SPARC_CPUDATA_H
0012
0013 #include <linux/percpu.h>
0014
0015 typedef struct {
0016 unsigned long udelay_val;
0017 unsigned long clock_tick;
0018 unsigned int counter;
0019 #ifdef CONFIG_SMP
0020 unsigned int irq_resched_count;
0021 unsigned int irq_call_count;
0022 #endif
0023 int prom_node;
0024 int mid;
0025 int next;
0026 } cpuinfo_sparc;
0027
0028 DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
0029 #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
0030 #define local_cpu_data() (*this_cpu_ptr(&__cpu_data))
0031
0032 #endif