Commit 93665ab0 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Daniel Lezcano

clocksource/drivers/arc_timer: Use BIT() instead of _BITUL()

This is in-kernel C code, so there is no reason to use _BITUL().
Replace it with equivalent BIT().

I added #include <linux/bits.h> explicitly although it has been included
by other headers eventually.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 8925ed4b
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/bits.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
#include <linux/clocksource.h> #include <linux/clocksource.h>
...@@ -142,7 +143,7 @@ static u64 arc_read_rtc(struct clocksource *cs) ...@@ -142,7 +143,7 @@ static u64 arc_read_rtc(struct clocksource *cs)
l = read_aux_reg(AUX_RTC_LOW); l = read_aux_reg(AUX_RTC_LOW);
h = read_aux_reg(AUX_RTC_HIGH); h = read_aux_reg(AUX_RTC_HIGH);
status = read_aux_reg(AUX_RTC_CTRL); status = read_aux_reg(AUX_RTC_CTRL);
} while (!(status & _BITUL(31))); } while (!(status & BIT(31)));
return (((u64)h) << 32) | l; return (((u64)h) << 32) | l;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment