summaryrefslogtreecommitdiff
path: root/chip/mec1322/hwtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mec1322/hwtimer.c')
-rw-r--r--chip/mec1322/hwtimer.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/chip/mec1322/hwtimer.c b/chip/mec1322/hwtimer.c
index b0405ec321..7f2d643d98 100644
--- a/chip/mec1322/hwtimer.c
+++ b/chip/mec1322/hwtimer.c
@@ -1,4 +1,4 @@
-/* Copyright 2013 The Chromium OS Authors. All rights reserved.
+/* Copyright 2013 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -15,8 +15,7 @@
void __hw_clock_event_set(uint32_t deadline)
{
- MEC1322_TMR32_CNT(1) = MEC1322_TMR32_CNT(0) -
- (0xffffffff - deadline);
+ MEC1322_TMR32_CNT(1) = MEC1322_TMR32_CNT(0) - (0xffffffff - deadline);
MEC1322_TMR32_CTL(1) |= BIT(5);
}
@@ -50,9 +49,15 @@ static void __hw_clock_source_irq(int timer_id)
process_timers(timer_id == 0);
}
-static void __hw_clock_source_irq_0(void) { __hw_clock_source_irq(0); }
+static void __hw_clock_source_irq_0(void)
+{
+ __hw_clock_source_irq(0);
+}
DECLARE_IRQ(MEC1322_IRQ_TIMER32_0, __hw_clock_source_irq_0, 1);
-static void __hw_clock_source_irq_1(void) { __hw_clock_source_irq(1); }
+static void __hw_clock_source_irq_1(void)
+{
+ __hw_clock_source_irq(1);
+}
DECLARE_IRQ(MEC1322_IRQ_TIMER32_1, __hw_clock_source_irq_1, 1);
static void configure_timer(int timer_id)