lkml.org 
[lkml]   [2011]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 4/7] timekeeper: Reorder so the hot data is together
Keep all the interesting data in a single cache line.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
kernel/time/timekeeping.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6-tip/kernel/time/timekeeping.c
===================================================================
--- linux-2.6-tip.orig/kernel/time/timekeeping.c
+++ linux-2.6-tip/kernel/time/timekeeping.c
@@ -27,6 +27,8 @@ struct timekeeper {
struct clocksource *clock;
/* The shift value of the current clocksource. */
int shift;
+ /* NTP adjusted clock multiplier */
+ u32 mult;

/* Number of clock cycles in one NTP interval. */
cycle_t cycle_interval;
@@ -45,8 +47,6 @@ struct timekeeper {
/* Shift conversion between clock shifted nano seconds and
* ntp shifted nano seconds. */
int ntp_error_shift;
- /* NTP adjusted clock multiplier */
- u32 mult;
};

static struct timekeeper timekeeper;



\
 
 \ /
  Last update: 2011-11-14 00:23    [W:0.042 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site