mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Cc: [email protected] Cc: Andy Lutomirski <[email protected]> Cc: Linus Torvalds <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
ba1f14fbe7
commit
be5e610c0f
3 changed files with 37 additions and 0 deletions
|
|
@ -809,6 +809,12 @@ config GENERIC_SCHED_CLOCK
|
|||
config ARCH_SUPPORTS_NUMA_BALANCING
|
||||
bool
|
||||
|
||||
#
|
||||
# For architectures that know their GCC __int128 support is sound
|
||||
#
|
||||
config ARCH_SUPPORTS_INT128
|
||||
bool
|
||||
|
||||
# For architectures that (ab)use NUMA to represent different memory regions
|
||||
# all cpu-local but of different latencies, such as SuperH.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue