Skip to content

Commit cbbfa38

Browse files
htejuntorvalds
authored andcommitted
mtrr: fix UP breakage caused during switch to stop_machine
While removing custom rendezvous code and switching to stop_machine, commit 192d885 ("x86, mtrr: use stop_machine APIs for doing MTRR rendezvous") completely dropped mtrr setting code on !CONFIG_SMP breaking MTRR settting on UP. Fix it by removing the incorrect CONFIG_SMP. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Anders Eriksson <aeriksson@fastmail.fm> Tested-and-acked-by: Suresh Siddha <suresh.b.siddha@intel.com> Acked-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e096d0c commit cbbfa38

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • arch/x86/kernel/cpu/mtrr

‎arch/x86/kernel/cpu/mtrr/main.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ struct set_mtrr_data {
149149
*/
150150
static int mtrr_rendezvous_handler(void *info)
151151
{
152-
#ifdef CONFIG_SMP
153152
struct set_mtrr_data *data = info;
154153

155154
/*
@@ -171,7 +170,6 @@ static int mtrr_rendezvous_handler(void *info)
171170
} else if (mtrr_aps_delayed_init || !cpu_online(smp_processor_id())) {
172171
mtrr_if->set_all();
173172
}
174-
#endif
175173
return 0;
176174
}
177175

0 commit comments

Comments
 (0)