lkml.org 
[lkml]   [2014]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 21/30] cputime: Remove task_cputime_t_scaled
    Date
    All readers of tsk->[us]timescaled have been converted to the new
    nsec based cputime type.

    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Wu Fengguang <fengguang.wu@intel.com>
    Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
    ---
    include/linux/sched.h | 13 -------------
    1 file changed, 13 deletions(-)

    diff --git a/include/linux/sched.h b/include/linux/sched.h
    index 9ce575e..659f068 100644
    --- a/include/linux/sched.h
    +++ b/include/linux/sched.h
    @@ -1920,19 +1920,6 @@ static inline void task_cputime_t(struct task_struct *t,
    *stime = nsecs_to_cputime(st);
    }

    -static inline void task_cputime_t_scaled(struct task_struct *t,
    - cputime_t *utimescaled,
    - cputime_t *stimescaled)
    -{
    - u64 ut, st;
    -
    - task_cputime_scaled(t, &ut, &st);
    - if (utimescaled)
    - *utimescaled = nsecs_to_cputime(ut);
    - if (stimescaled)
    - *stimescaled = nsecs_to_cputime(st);
    -}
    -
    extern void task_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st);
    extern void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st);

    --
    2.1.3


    \
     
     \ /
      Last update: 2014-11-28 20:01    [W:2.372 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site