Skip to content

Commit 8d9a9fe

Browse files
suryasaimadhuZhengShunQian
authored andcommitted
x86/vdso: Use static_cpu_has()
commit 8c72530 upstream ... and simplify and speed up a tad. Signed-off-by: Borislav Petkov <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Denys Vlasenko <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Srivatsa S. Bhat <[email protected]> Reviewed-by: Matt Helsley (VMware) <[email protected]> Reviewed-by: Alexey Makhalov <[email protected]> Reviewed-by: Bo Gan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 95e2cff commit 8d9a9fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/entry/vdso/vma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static void vgetcpu_cpu_init(void *arg)
255255
#ifdef CONFIG_NUMA
256256
node = cpu_to_node(cpu);
257257
#endif
258-
if (cpu_has(&cpu_data(cpu), X86_FEATURE_RDTSCP))
258+
if (static_cpu_has(X86_FEATURE_RDTSCP))
259259
write_rdtscp_aux((node << 12) | cpu);
260260

261261
/*

0 commit comments

Comments
 (0)