math64: New div64_u64_rem helper
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 5 Mar 2013 17:05:46 +0000 (18:05 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 13 Mar 2013 17:03:27 +0000 (18:03 +0100)
commitf792685006274a850e6cc0ea9ade275ccdfc90bc
tree712b47504d4e62906e966abef11c2e051a028889
parent660cc00f8c6f7a2e16c25918590b470e86de19ec
math64: New div64_u64_rem helper

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: Frederic 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>
include/linux/math64.h
lib/div64.c