i386: Remove local CPU logic in MTRR call to smp_call_function_single
smp_call_function_single handles the call to local CPU case correctly now, no need to handle this in the caller. [ tglx: arch/x86 adaptation ] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Thomas Gleixner
parent
6619a8fb59
commit
c8f2518e39
@@ -738,13 +738,7 @@ void mtrr_ap_init(void)
|
|||||||
*/
|
*/
|
||||||
void mtrr_save_state(void)
|
void mtrr_save_state(void)
|
||||||
{
|
{
|
||||||
int cpu = get_cpu();
|
smp_call_function_single(0, mtrr_save_fixed_ranges, NULL, 1, 1);
|
||||||
|
|
||||||
if (cpu == 0)
|
|
||||||
mtrr_save_fixed_ranges(NULL);
|
|
||||||
else
|
|
||||||
smp_call_function_single(0, mtrr_save_fixed_ranges, NULL, 1, 1);
|
|
||||||
put_cpu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init mtrr_init_finialize(void)
|
static int __init mtrr_init_finialize(void)
|
||||||
|
Reference in New Issue
Block a user