• Frederic Weisbecker's avatar
    math64: New div64_u64_rem helper · f7926850
    Frederic Weisbecker authored
    Provide an extended version of div64_u64() that
    also returns the remainder of the division.
    
    We are going to need this to refine the cputime
    scaling code.
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Stanislaw Gruszka <sgruszka@redhat.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    f7926850
div64.c 3.27 KB