math64: Add mul_u64_u32_shr()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 18 Nov 2013 17:27:06 +0000 (18:27 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 11 Dec 2013 14:52:34 +0000 (15:52 +0100)
commitbe5e610c0fd6ef772cafb9e0bd4128134804aef3
tree4cc4da2eea52c51ce868944aba28edf171a2d871
parentba1f14fbe70965ae0fb1655a5275a62723f65b77
math64: Add mul_u64_u32_shr()

Introduce mul_u64_u32_shr() as proposed by Andy a while back; it
allows using 64x64->128 muls on 64bit archs and recent GCC
which defines __SIZEOF_INT128__ and __int128.

(This new method will be used by the scheduler.)

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: fweisbec@gmail.com
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-hxjoeuzmrcaumR0uZwjpe2pv@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig
include/linux/math64.h
init/Kconfig