lkml.org 
[lkml]   [2009]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] Align rekey_work

    Align rekey_work. Even though it's infrequent, we may as well line it up.

    Signed-off-by: Anton Blanchard <anton@samba.org>
    ---

    Index: linux-2.6/drivers/char/random.c
    ===================================================================
    --- linux-2.6.orig/drivers/char/random.c 2009-04-01 15:47:27.000000000 +1100
    +++ linux-2.6/drivers/char/random.c 2009-04-01 16:32:40.000000000 +1100
    @@ -1488,7 +1488,8 @@
    keyptr->count = (ip_cnt & COUNT_MASK) << HASH_BITS;
    smp_wmb();
    ip_cnt++;
    - schedule_delayed_work(&rekey_work, REKEY_INTERVAL);
    + schedule_delayed_work(&rekey_work,
    + round_jiffies_relative(REKEY_INTERVAL));
    }

    static inline struct keydata *get_keyptr(void)

    \
     
     \ /
      Last update: 2009-04-01 12:55    [W:0.028 / U:0.088 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site