Blackfin: SMP: delay enabling caches until CPU is initialized
Defer bfin_setup_caches(cpu) to avoid unexpected faults due to the cpu state not yet being fully initialized. Signed-off-by: steven miao <realmz6@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
5f362c91d0
commit
ab61d2ac5c
1 changed files with 2 additions and 2 deletions
|
@ -361,8 +361,6 @@ void __cpuinit secondary_start_kernel(void)
|
||||||
*/
|
*/
|
||||||
init_exception_vectors();
|
init_exception_vectors();
|
||||||
|
|
||||||
bfin_setup_caches(cpu);
|
|
||||||
|
|
||||||
local_irq_disable();
|
local_irq_disable();
|
||||||
|
|
||||||
/* Attach the new idle task to the global mm. */
|
/* Attach the new idle task to the global mm. */
|
||||||
|
@ -381,6 +379,8 @@ void __cpuinit secondary_start_kernel(void)
|
||||||
|
|
||||||
local_irq_enable();
|
local_irq_enable();
|
||||||
|
|
||||||
|
bfin_setup_caches(cpu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calibrate loops per jiffy value.
|
* Calibrate loops per jiffy value.
|
||||||
* IRQs need to be enabled here - D-cache can be invalidated
|
* IRQs need to be enabled here - D-cache can be invalidated
|
||||||
|
|
Loading…
Reference in a new issue