summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorSimon Kagstrom <simon.kagstrom@netinsight.net>2009-09-17 15:15:52 +0200
committerWolfgang Denk <wd@denx.de>2009-09-17 22:45:31 +0200
commit0413cfecea350000eab5e591a0965c3e3ee0ff00 (patch)
tree5375713a0a077db87d0d222ce591800f768a2ca5 /include/asm-ppc
parent15fba3279b56333bdb65ead366f82c945ed320d1 (diff)
downloadblackbird-obmc-uboot-0413cfecea350000eab5e591a0965c3e3ee0ff00.tar.gz
blackbird-obmc-uboot-0413cfecea350000eab5e591a0965c3e3ee0ff00.zip
Correct ffs/fls regression for PowerPC etc
Commits 02f99901ed1c9d828e3ea117f94ce2264bf8389e 52d61227b66d4099b39c8309ab37cb67ee09a405 introduced a regression where platform-specific ffs/fls implementations were defined away. This patch corrects that by using PLATFORM_xxx instead of the name itself. Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net> Acked-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/bitops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-ppc/bitops.h b/include/asm-ppc/bitops.h
index 9ed2f5d6fa..adaf091492 100644
--- a/include/asm-ppc/bitops.h
+++ b/include/asm-ppc/bitops.h
@@ -178,7 +178,7 @@ static __inline__ int fls(unsigned int x)
{
return __ilog2(x) + 1;
}
-#define fls
+#define PLATFORM_FLS
/**
* fls64 - find last set bit in a 64-bit word
@@ -231,7 +231,7 @@ extern __inline__ int ffs(int x)
{
return __ilog2(x & -x) + 1;
}
-#define ffs
+#define PLATFORM_FFS
/*
* hweightN: returns the hamming weight (i.e. the number
OpenPOWER on IntegriCloud