Skip to content

Commit

Permalink
timekeeping: Make jiffies_lock internal
Browse files Browse the repository at this point in the history
Nothing outside of the timekeeping core needs that lock.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
  • Loading branch information
Thomas Gleixner authored and John Stultz committed Mar 22, 2013
1 parent 23a9537 commit eb93e4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/jiffies.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ extern int register_refined_jiffies(long clock_tick_rate);
*/
extern u64 __jiffy_data jiffies_64;
extern unsigned long volatile __jiffy_data jiffies;
extern seqlock_t jiffies_lock;

#if (BITS_PER_LONG < 64)
u64 get_jiffies_64(void);
Expand Down
2 changes: 2 additions & 0 deletions kernel/time/tick-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <linux/hrtimer.h>
#include <linux/tick.h>

extern seqlock_t jiffies_lock;

#ifdef CONFIG_GENERIC_CLOCKEVENTS_BUILD

#define TICK_DO_TIMER_NONE -1
Expand Down
1 change: 1 addition & 0 deletions kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/stop_machine.h>
#include <linux/pvclock_gtod.h>

#include "tick-internal.h"

static struct timekeeper timekeeper;

Expand Down

0 comments on commit eb93e4d

Please sign in to comment.