summaryrefslogtreecommitdiff
path: root/arch/nds32/include/asm/bitops.h
diff options
context:
space:
mode:
authorBryan O'Donoghue <pure.logic@nexus-software.ie>2018-04-30 15:56:08 +0100
committerTom Rini <trini@konsulko.com>2018-05-15 21:44:05 -0400
commit73171c8d53ec1d309aff19a9bb160d7eca857f32 (patch)
tree4c8675c344f80bd6fb385cf10c0dc3281a70c1b1 /arch/nds32/include/asm/bitops.h
parent76b916f233d65ac934999c9b19a052874ff7c1d9 (diff)
nds32: Define PLATFORM__CLEAR_BIT for generic_clear_bit()
nds2 bitops.h provides a __clear_bit() but does not define PLATFORM__CLEAR_BIT as a result generic_clear_bit() is used instead of the architecturally provided __clear_bit(). This patch defines PLATFORM__CLEAR_BIT which means that __clear_bit() in nds32 bitops.h will be called whenever generic_clear_bit() is called - as opposed to the default cross-platform generic_clear_bit(). Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie> Cc: Macpaul Lin <macpaul@andestech.com>
Diffstat (limited to 'arch/nds32/include/asm/bitops.h')
-rw-r--r--arch/nds32/include/asm/bitops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/bitops.h b/arch/nds32/include/asm/bitops.h
index ecd0032664..f1cdcf3e65 100644
--- a/arch/nds32/include/asm/bitops.h
+++ b/arch/nds32/include/asm/bitops.h
@@ -61,6 +61,8 @@ static inline void __clear_bit(int nr, void *addr)
local_irq_restore(flags);
}
+#define PLATFORM__CLEAR_BIT
+
extern void change_bit(int nr, void *addr);
static inline void __change_bit(int nr, void *addr)