Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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 <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Christoph Lameter and committed by
Linus Torvalds
67890d70 90036ee5

+2 -2
+2 -2
kernel/timer.c
··· 1354 1354 1355 1355 #ifdef CONFIG_TIME_INTERPOLATION 1356 1356 1357 - struct time_interpolator *time_interpolator; 1358 - static struct time_interpolator *time_interpolator_list; 1357 + struct time_interpolator *time_interpolator __read_mostly; 1358 + static struct time_interpolator *time_interpolator_list __read_mostly; 1359 1359 static DEFINE_SPINLOCK(time_interpolator_lock); 1360 1360 1361 1361 static inline u64 time_interpolator_get_cycles(unsigned int src)