Commit 9d0eb0ab authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: align some heavily used variables

From: Anton Blanchard <anton@samba.org>

Based on feedback from the hardware guys align jiffies and tb_last_stamp.
We update both regularly and there are other read only, heavily accessed
things that share those cachelines.
parent 349f2cf4
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
void smp_local_timer_interrupt(struct pt_regs *); void smp_local_timer_interrupt(struct pt_regs *);
u64 jiffies_64 = INITIAL_JIFFIES; u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
EXPORT_SYMBOL(jiffies_64); EXPORT_SYMBOL(jiffies_64);
...@@ -256,7 +256,7 @@ static void iSeries_tb_recal(void) ...@@ -256,7 +256,7 @@ static void iSeries_tb_recal(void)
* call will not be needed) * call will not be needed)
*/ */
unsigned long tb_last_stamp=0; unsigned long tb_last_stamp __cacheline_aligned_in_smp;
/* /*
* timer_interrupt - gets called when the decrementer overflows, * timer_interrupt - gets called when the decrementer overflows,
......
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