time: SMP friendly alignment of struct clocksource
commit329c8d84ca1946c037d9859dc251b56d8b1b4630
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 8 May 2007 07:27:57 +0000 (8 00:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:06 +0000 (8 11:15 -0700)
tree05cfd2124dd6066eb6c2e769be99f6860ffb7501
parentf75d222b836f7febfab0954c7612b23059d748cb
time: SMP friendly alignment of struct clocksource

struct clocksource is a critical data structure.

Most of its fields are read only, some of them are heavily modified at each
timer interrupt.

It makes sense to separate those fields and make sure they all share one
cache line, or at least the minimum for machines with small cache lines.

[akpm@linux-foundation.org: build fix]
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Acked-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/clocksource.h