diff options
| -rw-r--r-- | arch/x86/oprofile/nmi_int.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index 174c59774cc9..a7a7677265b6 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
| @@ -460,7 +460,7 @@ static int nmi_setup(void) | |||
| 460 | goto fail; | 460 | goto fail; |
| 461 | 461 | ||
| 462 | for_each_possible_cpu(cpu) { | 462 | for_each_possible_cpu(cpu) { |
| 463 | if (!cpu) | 463 | if (!IS_ENABLED(CONFIG_SMP) || !cpu) |
| 464 | continue; | 464 | continue; |
| 465 | 465 | ||
| 466 | memcpy(per_cpu(cpu_msrs, cpu).counters, | 466 | memcpy(per_cpu(cpu_msrs, cpu).counters, |
