processor.h (18c26c27ae0abe82253cb2e2363df465dbbb657e) processor.h (eb068e781020cf491333c773fb41820b57bfada4)
1#ifndef _ASM_X86_PROCESSOR_H
2#define _ASM_X86_PROCESSOR_H
3
4#include <asm/processor-flags.h>
5
6/* Forward declaration, a strange C thing */
7struct task_struct;
8struct mm_struct;

--- 164 unchanged lines hidden (view full) ---

173 return 1;
174#endif
175}
176
177#define cache_line_size() (boot_cpu_data.x86_cache_alignment)
178
179extern void cpu_detect(struct cpuinfo_x86 *c);
180
1#ifndef _ASM_X86_PROCESSOR_H
2#define _ASM_X86_PROCESSOR_H
3
4#include <asm/processor-flags.h>
5
6/* Forward declaration, a strange C thing */
7struct task_struct;
8struct mm_struct;

--- 164 unchanged lines hidden (view full) ---

173 return 1;
174#endif
175}
176
177#define cache_line_size() (boot_cpu_data.x86_cache_alignment)
178
179extern void cpu_detect(struct cpuinfo_x86 *c);
180
181extern struct pt_regs *idle_regs(struct pt_regs *);
182
181extern void early_cpu_init(void);
182extern void identify_boot_cpu(void);
183extern void identify_secondary_cpu(struct cpuinfo_x86 *);
184extern void print_cpu_info(struct cpuinfo_x86 *);
185void print_cpu_msr(struct cpuinfo_x86 *);
186extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c);
187extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
188extern unsigned short num_cache_leaves;

--- 476 unchanged lines hidden (view full) ---

665 rep_nop();
666}
667
668/* Stop speculative execution and prefetching of modified code. */
669static inline void sync_core(void)
670{
671 int tmp;
672
183extern void early_cpu_init(void);
184extern void identify_boot_cpu(void);
185extern void identify_secondary_cpu(struct cpuinfo_x86 *);
186extern void print_cpu_info(struct cpuinfo_x86 *);
187void print_cpu_msr(struct cpuinfo_x86 *);
188extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c);
189extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
190extern unsigned short num_cache_leaves;

--- 476 unchanged lines hidden (view full) ---

667 rep_nop();
668}
669
670/* Stop speculative execution and prefetching of modified code. */
671static inline void sync_core(void)
672{
673 int tmp;
674
673#if defined(CONFIG_M386) || defined(CONFIG_M486)
675#ifdef CONFIG_M486
674 if (boot_cpu_data.x86 < 5)
675 /* There is no speculative execution.
676 * jmp is a barrier to prefetching. */
677 asm volatile("jmp 1f\n1:\n" ::: "memory");
678 else
679#endif
680 /* cpuid is a barrier to speculative execution.
681 * Prefetched instructions are automatically

--- 313 unchanged lines hidden ---
676 if (boot_cpu_data.x86 < 5)
677 /* There is no speculative execution.
678 * jmp is a barrier to prefetching. */
679 asm volatile("jmp 1f\n1:\n" ::: "memory");
680 else
681#endif
682 /* cpuid is a barrier to speculative execution.
683 * Prefetched instructions are automatically

--- 313 unchanged lines hidden ---