time.c (0898782247ae533d1f4e47a06bc5d4870931b284) | time.c (575fb69ef919c49283d3fa0d8b13af34011f4abd) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/common/time-acorn.c 4 * 5 * Copyright (c) 1996-2000 Russell King. 6 * 7 * Changelog: 8 * 24-Sep-1996 RMK Created --- 71 unchanged lines hidden (view full) --- 80static irqreturn_t 81ioc_timer_interrupt(int irq, void *dev_id) 82{ 83 ioc_time += RPC_LATCH; 84 timer_tick(); 85 return IRQ_HANDLED; 86} 87 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/common/time-acorn.c 4 * 5 * Copyright (c) 1996-2000 Russell King. 6 * 7 * Changelog: 8 * 24-Sep-1996 RMK Created --- 71 unchanged lines hidden (view full) --- 80static irqreturn_t 81ioc_timer_interrupt(int irq, void *dev_id) 82{ 83 ioc_time += RPC_LATCH; 84 timer_tick(); 85 return IRQ_HANDLED; 86} 87 |
88static struct irqaction ioc_timer_irq = { 89 .name = "timer", 90 .handler = ioc_timer_interrupt 91}; 92 | |
93/* 94 * Set up timer interrupt. 95 */ 96void __init ioc_timer_init(void) 97{ 98 WARN_ON(clocksource_register_hz(&ioctime_clocksource, RPC_CLOCK_FREQ)); 99 ioctime_init(); | 88/* 89 * Set up timer interrupt. 90 */ 91void __init ioc_timer_init(void) 92{ 93 WARN_ON(clocksource_register_hz(&ioctime_clocksource, RPC_CLOCK_FREQ)); 94 ioctime_init(); |
100 setup_irq(IRQ_TIMER0, &ioc_timer_irq); | 95 if (request_irq(IRQ_TIMER0, ioc_timer_interrupt, 0, "timer", NULL)) 96 pr_err("Failed to request irq %d (timer)\n", IRQ_TIMER0); |
101} | 97} |