Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315848

[PATCH 6/6] x86/vdso: Use static_cpu_has()

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject [PATCH 6/6] x86/vdso: Use static_cpu_has()
Date 2016-01-24 10:40 +0100
Message-ID <qUpjk-2Lg-11@gated-at.bofh.it> (permalink)
References <qUpjj-2Lg-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Borislav Petkov <bp@suse.de>

... and simplify and speed up a tad.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
---
 arch/x86/entry/vdso/vma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/entry/vdso/vma.c b/arch/x86/entry/vdso/vma.c
index 429d54d01b38..10f704584922 100644
--- a/arch/x86/entry/vdso/vma.c
+++ b/arch/x86/entry/vdso/vma.c
@@ -285,7 +285,7 @@ static void vgetcpu_cpu_init(void *arg)
 #ifdef CONFIG_NUMA
 	node = cpu_to_node(cpu);
 #endif
-	if (cpu_has(&cpu_data(cpu), X86_FEATURE_RDTSCP))
+	if (static_cpu_has(X86_FEATURE_RDTSCP))
 		write_rdtscp_aux((node << 12) | cpu);
 
 	/*
-- 
2.3.5

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 6/6] x86/vdso: Use static_cpu_has() Borislav Petkov <bp@alien8.de> - 2016-01-24 10:40 +0100
  Re: [PATCH 6/6] x86/vdso: Use static_cpu_has() Andy Lutomirski <luto@amacapital.net> - 2016-01-25 19:50 +0100
    Re: [PATCH 6/6] x86/vdso: Use static_cpu_has() Borislav Petkov <bp@alien8.de> - 2016-01-25 20:00 +0100

csiph-web