• Baolin Wang's avatar
    time: Introduce do_sys_settimeofday64() · 86d34732
    Baolin Wang authored
    The do_sys_settimeofday() function uses a timespec, which is not year
    2038 safe on 32bit systems.
    
    Thus this patch introduces do_sys_settimeofday64(), which allows us to
    transition users of do_sys_settimeofday() to using 64bit time types.
    
    Cc: Prarit Bhargava <prarit@redhat.com>
    Cc: Richard Cochran <richardcochran@gmail.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@kernel.org>
    Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
    [jstultz: Include errno-base.h to avoid build issue on some arches]
    Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
    86d34732
time.c 20.3 KB