aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/processor_64.h')
-rw-r--r--include/asm-x86/processor_64.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h
index 7fe5c1461c83..5045abe91e37 100644
--- a/include/asm-x86/processor_64.h
+++ b/include/asm-x86/processor_64.h
@@ -15,65 +15,9 @@
15#include <asm/current.h> 15#include <asm/current.h>
16#include <asm/system.h> 16#include <asm/system.h>
17#include <asm/mmsegment.h> 17#include <asm/mmsegment.h>
18#include <asm/percpu.h>
19#include <linux/personality.h> 18#include <linux/personality.h>
20#include <linux/cpumask.h>
21#include <asm/desc_defs.h> 19#include <asm/desc_defs.h>
22 20
23/*
24 * CPU type and hardware bug flags. Kept separately for each CPU.
25 */
26
27struct cpuinfo_x86 {
28 __u8 x86; /* CPU family */
29 __u8 x86_vendor; /* CPU vendor */
30 __u8 x86_model;
31 __u8 x86_mask;
32 int cpuid_level; /* Maximum supported CPUID level, -1=no CPUID */
33 __u32 x86_capability[NCAPINTS];
34 char x86_vendor_id[16];
35 char x86_model_id[64];
36 int x86_cache_size; /* in KB */
37 int x86_clflush_size;
38 int x86_cache_alignment;
39 int x86_tlbsize; /* number of 4K pages in DTLB/ITLB combined(in pages)*/
40 __u8 x86_virt_bits, x86_phys_bits;
41 __u8 x86_max_cores; /* cpuid returned max cores value */
42 __u8 x86_coreid_bits; /* cpuid returned core id bits */
43 __u32 x86_power;
44 __u32 extended_cpuid_level; /* Max extended CPUID function supported */
45 unsigned long loops_per_jiffy;
46#ifdef CONFIG_SMP
47 cpumask_t llc_shared_map; /* cpus sharing the last level cache */
48#endif
49 __u8 apicid;
50#ifdef CONFIG_SMP
51 __u8 booted_cores; /* number of cores as seen by OS */
52 __u8 phys_proc_id; /* Physical Processor id. */
53 __u8 cpu_core_id; /* Core id. */
54 __u8 cpu_index; /* index into per_cpu list */
55#endif
56} ____cacheline_aligned;
57
58#define X86_VENDOR_INTEL 0
59#define X86_VENDOR_CYRIX 1
60#define X86_VENDOR_AMD 2
61#define X86_VENDOR_UMC 3
62#define X86_VENDOR_NEXGEN 4
63#define X86_VENDOR_CENTAUR 5
64#define X86_VENDOR_TRANSMETA 7
65#define X86_VENDOR_NUM 8
66#define X86_VENDOR_UNKNOWN 0xff
67
68#ifdef CONFIG_SMP
69DECLARE_PER_CPU(struct cpuinfo_x86, cpu_info);
70#define cpu_data(cpu) per_cpu(cpu_info, cpu)
71#define current_cpu_data cpu_data(smp_processor_id())
72#else
73#define cpu_data(cpu) boot_cpu_data
74#define current_cpu_data boot_cpu_data
75#endif
76
77extern char ignore_irq13; 21extern char ignore_irq13;
78 22
79extern void identify_cpu(struct cpuinfo_x86 *); 23extern void identify_cpu(struct cpuinfo_x86 *);
@@ -110,7 +54,6 @@ union i387_union {
110 struct i387_fxsave_struct fxsave; 54 struct i387_fxsave_struct fxsave;
111}; 55};
112 56
113extern struct cpuinfo_x86 boot_cpu_data;
114/* Save the original ist values for checking stack pointers during debugging */ 57/* Save the original ist values for checking stack pointers during debugging */
115struct orig_ist { 58struct orig_ist {
116 unsigned long ist[7]; 59 unsigned long ist[7];