x86_64/vdso: Remove jiffies from the vvar page
authorAndy Lutomirski <luto@amacapital.net>
Tue, 23 Sep 2014 17:50:56 +0000 (10:50 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 Oct 2014 10:22:13 +0000 (11:22 +0100)
I think that the jiffies vvar was once used for the vgetcpu
cache. That code is long gone, so let's just make jiffies be a
normal variable.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/fcfee6f8749af14d96373a9e2656354ad0b95499.1411494540.git.luto@amacapital.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/vvar.h
arch/x86/kernel/time.c
arch/x86/vdso/vgetcpu.c

index 5d2b9ad2c6d2953cbc803206a7347d31422ebd6c..5f6d40734a3b75154747cb47b33a002d33c2df18 100644 (file)
@@ -44,7 +44,6 @@ extern char __vvar_page;
 
 /* DECLARE_VVAR(offset, type, name) */
 
-DECLARE_VVAR(0, volatile unsigned long, jiffies)
 DECLARE_VVAR(16, int, vgetcpu_mode)
 DECLARE_VVAR(128, struct vsyscall_gtod_data, vsyscall_gtod_data)
 
index 0fa29609b2c42236c7cd5bd913533cf18b895cc3..25adc0e16eaa6349e78bd909860f6710705acb8e 100644 (file)
@@ -23,7 +23,7 @@
 #include <asm/time.h>
 
 #ifdef CONFIG_X86_64
-__visible DEFINE_VVAR(volatile unsigned long, jiffies) = INITIAL_JIFFIES;
+__visible volatile unsigned long jiffies __cacheline_aligned = INITIAL_JIFFIES;
 #endif
 
 unsigned long profile_pc(struct pt_regs *regs)
index 2f94b039e55b6c2da8f40616af7445e0f8454a27..add1d98d2477a1c9ad2ef3ff47e187d255deff85 100644 (file)
@@ -7,7 +7,6 @@
 
 #include <linux/kernel.h>
 #include <linux/getcpu.h>
-#include <linux/jiffies.h>
 #include <linux/time.h>
 #include <asm/vsyscall.h>
 #include <asm/vgtod.h>