Commit 5aee405c authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Linus Torvalds
Browse files

[PATCH] time: add barrier after updating jiffies_64

Add a compiler barrier so that we don't read jiffies before updating
Signed-off-by: default avatarAtsushi Nemoto <>
Cc: Ralf Baechle <>
Cc: Paul Mackerras <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a615fa83
...@@ -941,6 +941,8 @@ static inline void update_times(void) ...@@ -941,6 +941,8 @@ static inline void update_times(void)
void do_timer(struct pt_regs *regs) void do_timer(struct pt_regs *regs)
{ {
jiffies_64++; jiffies_64++;
/* prevent loading jiffies before storing new jiffies_64 value. */
update_times(); update_times();
softlockup_tick(regs); softlockup_tick(regs);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment