lkml.org 
[lkml]   [2015]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 11/39] hrtimer: Cache line align the hrtimer cpu base
    We really want that data structure to start at a cache line boundary.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    ---
    include/linux/hrtimer.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: tip/include/linux/hrtimer.h
    ===================================================================
    --- tip.orig/include/linux/hrtimer.h
    +++ tip/include/linux/hrtimer.h
    @@ -191,7 +191,7 @@ struct hrtimer_cpu_base {
    unsigned int max_hang_time;
    #endif
    struct hrtimer_clock_base clock_base[HRTIMER_MAX_CLOCK_BASES];
    -};
    +} ____cacheline_aligned;

    static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time)
    {



    \
     
     \ /
      Last update: 2015-04-14 23:41    [W:3.382 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site