[PATCH 2/5] sched_clock: Optimize cache line usage

2015-03-26 Thread John Stultz
From: Daniel Thompson Currently sched_clock(), a very hot code path, is not optimized to minimise its cache profile. In particular: 1. cd is not cacheline_aligned, 2. struct clock_data does not distinguish between hotpath and coldpath data, reducing locality of reference in the hot

[PATCH 2/5] sched_clock: Optimize cache line usage

2015-03-17 Thread John Stultz
From: Daniel Thompson Currently sched_clock(), a very hot code path, is not optimized to minimise its cache profile. In particular: 1. cd is not cacheline_aligned, 2. struct clock_data does not distinguish between hotpath and coldpath data, reducing locality of reference in the hot