projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6430eea
)
sh: bitops: add hweight*() macros
author
Vignesh R
<vigneshr@ti.com>
Tue, 5 Feb 2019 05:59:16 +0000
(11:29 +0530)
committer
Jagan Teki
<jagan@amarulasolutions.com>
Thu, 7 Feb 2019 10:03:21 +0000
(15:33 +0530)
Add hweight*() macros required for moving to new SF layer
Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/sh/include/asm/bitops.h
patch
|
blob
|
history
diff --git
a/arch/sh/include/asm/bitops.h
b/arch/sh/include/asm/bitops.h
index 8cb8385d76db5e7514f19c75f0d9bbfe6d479016..765f28f116bcdb1363ff9d00688219e8d35d6f52 100644
(file)
--- a/
arch/sh/include/asm/bitops.h
+++ b/
arch/sh/include/asm/bitops.h
@@
-153,6
+153,10
@@
static inline int ffs (int x)
}
#define PLATFORM_FFS
+#define hweight32(x) generic_hweight32(x)
+#define hweight16(x) generic_hweight16(x)
+#define hweight8(x) generic_hweight8(x)
+
#endif /* __KERNEL__ */
#endif /* __ASM_SH_BITOPS_H */