mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
sh: Kill off special boot_cpu_data.
This consolidates the cpu_data definitions and gets rid of the special boot_cpu_data. It's made a wrapper to the boot CPU, in order to keep the existing in-tree users happy. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
00765c816a
commit
2d4a73d5b9
@ -42,7 +42,13 @@ extern void * __rd_start, * __rd_end;
|
|||||||
* This value will be used at the very early stage of serial setup.
|
* This value will be used at the very early stage of serial setup.
|
||||||
* The bigger value means no problem.
|
* The bigger value means no problem.
|
||||||
*/
|
*/
|
||||||
struct sh_cpuinfo boot_cpu_data = { CPU_SH_NONE, 10000000, };
|
struct sh_cpuinfo cpu_data[NR_CPUS] __read_mostly = {
|
||||||
|
[0] = {
|
||||||
|
.type = CPU_SH_NONE,
|
||||||
|
.loops_per_jiffy = 10000000,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
EXPORT_SYMBOL(cpu_data);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The machine vector. First entry in .machvec.init, or clobbered by
|
* The machine vector. First entry in .machvec.init, or clobbered by
|
||||||
|
@ -43,7 +43,6 @@ EXPORT_SYMBOL(memcpy);
|
|||||||
EXPORT_SYMBOL(memset);
|
EXPORT_SYMBOL(memset);
|
||||||
EXPORT_SYMBOL(memmove);
|
EXPORT_SYMBOL(memmove);
|
||||||
EXPORT_SYMBOL(__copy_user);
|
EXPORT_SYMBOL(__copy_user);
|
||||||
EXPORT_SYMBOL(boot_cpu_data);
|
|
||||||
|
|
||||||
#ifdef CONFIG_MMU
|
#ifdef CONFIG_MMU
|
||||||
EXPORT_SYMBOL(get_vm_area);
|
EXPORT_SYMBOL(get_vm_area);
|
||||||
|
@ -73,15 +73,10 @@ struct sh_cpuinfo {
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
} __attribute__ ((aligned(SMP_CACHE_BYTES)));
|
} __attribute__ ((aligned(SMP_CACHE_BYTES)));
|
||||||
|
|
||||||
extern struct sh_cpuinfo boot_cpu_data;
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
|
||||||
extern struct sh_cpuinfo cpu_data[];
|
extern struct sh_cpuinfo cpu_data[];
|
||||||
|
#define boot_cpu_data cpu_data[0]
|
||||||
#define current_cpu_data cpu_data[smp_processor_id()]
|
#define current_cpu_data cpu_data[smp_processor_id()]
|
||||||
#else
|
#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
|
||||||
#define cpu_data (&boot_cpu_data)
|
|
||||||
#define current_cpu_data boot_cpu_data
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* User space process size: 2GB.
|
* User space process size: 2GB.
|
||||||
|
Loading…
Reference in New Issue
Block a user