diff options
-rw-r--r-- | arch/x86/platform/uv/tlb_uv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c index 68e467f69fec..34be65093309 100644 --- a/arch/x86/platform/uv/tlb_uv.c +++ b/arch/x86/platform/uv/tlb_uv.c | |||
@@ -1334,9 +1334,10 @@ static ssize_t tunables_write(struct file *file, const char __user *user, | |||
1334 | 1334 | ||
1335 | instr[count] = '\0'; | 1335 | instr[count] = '\0'; |
1336 | 1336 | ||
1337 | bcp = &per_cpu(bau_control, smp_processor_id()); | 1337 | cpu = get_cpu(); |
1338 | 1338 | bcp = &per_cpu(bau_control, cpu); | |
1339 | ret = parse_tunables_write(bcp, instr, count); | 1339 | ret = parse_tunables_write(bcp, instr, count); |
1340 | put_cpu(); | ||
1340 | if (ret) | 1341 | if (ret) |
1341 | return ret; | 1342 | return ret; |
1342 | 1343 | ||