X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-lh7a40x%2Ftime.h;fp=arch%2Farm%2Fmach-lh7a40x%2Ftime.c;h=5f1cf4f9b2c73b1097df62b9ec6af647afe19f84;hb=f9296eb00ed30209424102d3c920e69617eea853;hp=61ada24c78a7d93cd7085db75bd4c197c9c8ac2f;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/arch/arm/mach-lh7a40x/time.c b/include/asm-arm/arch-lh7a40x/time.h similarity index 66% rename from arch/arm/mach-lh7a40x/time.c rename to include/asm-arm/arch-lh7a40x/time.h index 61ada24c7..5f1cf4f9b 100644 --- a/arch/arm/mach-lh7a40x/time.c +++ b/include/asm-arm/arch-lh7a40x/time.h @@ -1,5 +1,4 @@ -/* - * arch/arm/mach-lh7a40x/time.c +/* include/asm-arm/arch-lh7a40x/time.h * * Copyright (C) 2004 Logic Product Development * @@ -8,18 +7,6 @@ * version 2 as published by the Free Software Foundation. * */ -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -#include #if HZ < 100 # define TIMER_CONTROL TIMER_CONTROL1 @@ -41,25 +28,24 @@ static irqreturn_t lh7a40x_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) { TIMER_EOI = 0; - timer_tick(regs); + do_profile (regs); + do_leds(); + do_set_rtc(); + do_timer (regs); return IRQ_HANDLED; } -static struct irqaction lh7a40x_timer_irq = { - .name = "LHA740x Timer Tick", - .flags = SA_INTERRUPT, - .handler = lh7a40x_timer_interrupt -}; - -void __init lh7a40x_init_time(void) +void __init time_init(void) { /* Stop/disable all timers */ TIMER_CONTROL1 = 0; TIMER_CONTROL2 = 0; TIMER_CONTROL3 = 0; - setup_irq (TIMER_IRQ, &lh7a40x_timer_irq); + timer_irq.handler = lh7a40x_timer_interrupt; + timer_irq.flags |= SA_INTERRUPT; + setup_irq (TIMER_IRQ, &timer_irq); TIMER_LOAD = TIMER_CONSTANT; TIMER_CONTROL = TIMER_MODE;