X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=arch%2Fmips%2Fgt64120%2Fcommon%2Ftime.c;h=c47eeb768192394ba3dc1205deb1fea3fd97f0c8;hb=a22a0fab32e1216df56e4b9a577dc5c922cf7524;hp=efafabdd5bbffd8cb60f150c2101509da1a1c055;hpb=65542070de7d6cd307657a71ab1712a6c58c0889;p=linux-2.6-omap-h63xx.git diff --git a/arch/mips/gt64120/common/time.c b/arch/mips/gt64120/common/time.c index efafabdd5bb..c47eeb76819 100644 --- a/arch/mips/gt64120/common/time.c +++ b/arch/mips/gt64120/common/time.c @@ -11,7 +11,6 @@ #include #include #include -#include #include /* @@ -65,14 +64,14 @@ static irqreturn_t gt64120_irq(int irq, void *dev_id) * as *irq (=irq0 in ../kernel/time.c). We will do our own timer interrupt * handling. */ -void gt64120_time_init(void) +void __init plat_timer_setup(struct irqaction *irq) { static struct irqaction timer; /* Disable timer first */ GT_WRITE(GT_TC_CONTROL_OFS, 0); /* Load timer value for 100 Hz */ - GT_WRITE(GT_TC3_OFS, Sys_clock / 100); + GT_WRITE(GT_TC3_OFS, Sys_clock / HZ); /* * Create the IRQ structure entry for the timer. Since we're too early