From: Christoph Lameter Date: Fri, 17 Mar 2006 07:04:00 +0000 (-0800) Subject: [PATCH] time_interpolator: add __read_mostly X-Git-Tag: v2.6.16~17 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=67890d7084085e29c51afa2514036d42643fd3cf;p=linux-2.6-omap-h63xx.git [PATCH] time_interpolator: add __read_mostly The pointer to the current time interpolator and the current list of time interpolators are typically only changed during bootup. Adding __read_mostly takes them away from possibly hot cachelines. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/timer.c b/kernel/timer.c index bf7c4193b93..2410c18dbeb 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -1354,8 +1354,8 @@ void __init init_timers(void) #ifdef CONFIG_TIME_INTERPOLATION -struct time_interpolator *time_interpolator; -static struct time_interpolator *time_interpolator_list; +struct time_interpolator *time_interpolator __read_mostly; +static struct time_interpolator *time_interpolator_list __read_mostly; static DEFINE_SPINLOCK(time_interpolator_lock); static inline u64 time_interpolator_get_cycles(unsigned int src)