mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
um, hweight: Fix UML boot crash due to x86 optimized hweight
Apparently UML cannot stomach callee reg-saving trickery
introduced with d61931d89b
(x86: Add optimized popcnt variants) and oopses during boot:
http://marc.info/?l=linux-kernel&m=127522065202435&w=2
Redirect arch_hweight.h include from the x86 portion to the generic
arch_hweight.h which is a fallback to the software hweight routines.
LKML-Reference: <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
This commit is contained in:
parent
cf3bdc29fc
commit
055c47272b
1 changed files with 6 additions and 0 deletions
6
arch/um/include/asm/arch_hweight.h
Normal file
6
arch/um/include/asm/arch_hweight.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef _ASM_UM_HWEIGHT_H
|
||||
#define _ASM_UM_HWEIGHT_H
|
||||
|
||||
#include <asm-generic/bitops/arch_hweight.h>
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue