Skip to content

Commit 40747ff

Browse files
Andi KleenH. Peter Anvin
Andi Kleen
authored and
H. Peter Anvin
committed
asmlinkage: Make jiffies visible
Jiffies is referenced by the linker script, so it has to be visible. Handled both the generic and the x86 version. Signed-off-by: Andi Kleen <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: H. Peter Anvin <[email protected]>
1 parent d47d5c8 commit 40747ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/x86/kernel/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <asm/time.h>
2424

2525
#ifdef CONFIG_X86_64
26-
DEFINE_VVAR(volatile unsigned long, jiffies) = INITIAL_JIFFIES;
26+
__visible DEFINE_VVAR(volatile unsigned long, jiffies) = INITIAL_JIFFIES;
2727
#endif
2828

2929
unsigned long profile_pc(struct pt_regs *regs)

kernel/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#define CREATE_TRACE_POINTS
5353
#include <trace/events/timer.h>
5454

55-
u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
55+
__visible u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
5656

5757
EXPORT_SYMBOL(jiffies_64);
5858

0 commit comments

Comments
 (0)