mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-24 18:38:38 +00:00
30964d54e9
Change the following static arrays sized by NR_CPUS to per_cpu data variables: i386_cpu cpu_devices[NR_CPUS]; (And change the struct name to x86_cpu.) Signed-off-by: Mike Travis <travis@sgi.com> Reviewed-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
20 lines
394 B
C
20 lines
394 B
C
#ifndef _ASM_I386_CPU_H_
|
|
#define _ASM_I386_CPU_H_
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/cpu.h>
|
|
#include <linux/topology.h>
|
|
#include <linux/nodemask.h>
|
|
#include <linux/percpu.h>
|
|
|
|
struct x86_cpu {
|
|
struct cpu cpu;
|
|
};
|
|
extern int arch_register_cpu(int num);
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
|
extern void arch_unregister_cpu(int);
|
|
#endif
|
|
|
|
DECLARE_PER_CPU(int, cpu_state);
|
|
#endif /* _ASM_I386_CPU_H_ */
|