lkml.org 
[lkml]   [2018]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] posix-timers: use ktime_get_raw_ts64() instead of getrawmonotonic64()
    Date
    getrawmonotonic64() is deprecated. This follows Arnd Bergmann's patch[1]
    for replacing deprecated functions.

    [1] https://patchwork.kernel.org/patch/10472141/

    Signed-off-by: Ivid Suvarna <ivid.suvarna@gmail.com>
    ---
    kernel/time/posix-timers.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c
    index e08ce3f27447..2f50ac8c258f 100644
    --- a/kernel/time/posix-timers.c
    +++ b/kernel/time/posix-timers.c
    @@ -228,7 +228,7 @@ static int posix_ktime_get_ts(clockid_t which_clock, struct timespec64 *tp)
    */
    static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp)
    {
    - getrawmonotonic64(tp);
    + ktime_get_raw_ts64(tp);
    return 0;
    }

    \
     
     \ /
      Last update: 2018-06-18 22:12    [W:4.223 / U:0.664 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site