hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/clocksource/arc_timer.c
....@@ -1,10 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com)
34 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
85 */
96
107 /* ARC700 has two 32bit independent prog Timers: TIMER0 and TIMER1, Each can be
....@@ -16,6 +13,7 @@
1613 */
1714
1815 #include <linux/interrupt.h>
16
+#include <linux/bits.h>
1917 #include <linux/clk.h>
2018 #include <linux/clk-provider.h>
2119 #include <linux/clocksource.h>
....@@ -142,7 +140,7 @@
142140 l = read_aux_reg(AUX_RTC_LOW);
143141 h = read_aux_reg(AUX_RTC_HIGH);
144142 status = read_aux_reg(AUX_RTC_CTRL);
145
- } while (!(status & _BITUL(31)));
143
+ } while (!(status & BIT(31)));
146144
147145 return (((u64)h) << 32) | l;
148146 }
....@@ -336,10 +334,8 @@
336334 }
337335
338336 ret = arc_get_timer_clk(node);
339
- if (ret) {
340
- pr_err("clockevent: missing clk\n");
337
+ if (ret)
341338 return ret;
342
- }
343339
344340 /* Needs apriori irq_set_percpu_devid() done in intc map function */
345341 ret = request_percpu_irq(arc_timer_irq, timer_irq_handler,