diff options
Diffstat (limited to 'include/asm-sparc/cpudata.h')
-rw-r--r-- | include/asm-sparc/cpudata.h | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/include/asm-sparc/cpudata.h b/include/asm-sparc/cpudata.h index a2c4d51d36c4..b76fac0c8d8f 100644 --- a/include/asm-sparc/cpudata.h +++ b/include/asm-sparc/cpudata.h | |||
@@ -1,27 +1,8 @@ | |||
1 | /* cpudata.h: Per-cpu parameters. | 1 | #ifndef ___ASM_SPARC_CPUDATA_H |
2 | * | 2 | #define ___ASM_SPARC_CPUDATA_H |
3 | * Copyright (C) 2004 Keith M Wesolowski (wesolows@foobazco.org) | 3 | #if defined(__sparc__) && defined(__arch64__) |
4 | * | 4 | #include <asm-sparc/cpudata_64.h> |
5 | * Based on include/asm-sparc64/cpudata.h and Linux 2.4 smp.h | 5 | #else |
6 | * both (C) David S. Miller. | 6 | #include <asm-sparc/cpudata_32.h> |
7 | */ | 7 | #endif |
8 | 8 | #endif | |
9 | #ifndef _SPARC_CPUDATA_H | ||
10 | #define _SPARC_CPUDATA_H | ||
11 | |||
12 | #include <linux/percpu.h> | ||
13 | |||
14 | typedef struct { | ||
15 | unsigned long udelay_val; | ||
16 | unsigned long clock_tick; | ||
17 | unsigned int multiplier; | ||
18 | unsigned int counter; | ||
19 | int prom_node; | ||
20 | int mid; | ||
21 | int next; | ||
22 | } cpuinfo_sparc; | ||
23 | |||
24 | DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data); | ||
25 | #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu)) | ||
26 | |||
27 | #endif /* _SPARC_CPUDATA_H */ | ||