sh: Fixup cpu_data references for the non-boot CPUs.
There are a lot of bogus cpu_data-> references that only end up working for the boot CPU, convert these to current_cpu_data to fixup SMP. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -46,10 +46,10 @@ static int cache_seq_show(struct seq_file *file, void *iter)
|
||||
|
||||
if (cache_type == CACHE_TYPE_DCACHE) {
|
||||
base = CACHE_OC_ADDRESS_ARRAY;
|
||||
cache = &cpu_data->dcache;
|
||||
cache = ¤t_cpu_data.dcache;
|
||||
} else {
|
||||
base = CACHE_IC_ADDRESS_ARRAY;
|
||||
cache = &cpu_data->icache;
|
||||
cache = ¤t_cpu_data.icache;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user