X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fmips%2Fau1000%2Fcommon%2Ftime.c;h=f74d66a58a21a51c8dc2915c8e741fc0b500440a;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=7fbea1bf7b4824afb61d2bacc1c28ab40d1e9458;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/mips/au1000/common/time.c b/arch/mips/au1000/common/time.c index 7fbea1bf7..f74d66a58 100644 --- a/arch/mips/au1000/common/time.c +++ b/arch/mips/au1000/common/time.c @@ -33,6 +33,7 @@ */ #include +#include #include #include #include @@ -49,6 +50,10 @@ #include #include +extern void do_softirq(void); +extern volatile unsigned long wall_jiffies; +unsigned long missed_heart_beats = 0; + static unsigned long r4k_offset; /* Amount to increment compare reg each time */ static unsigned long r4k_cur; /* What counter should be at next timer irq */ int no_au1xxx_32khz; @@ -383,9 +388,10 @@ static unsigned long do_fast_pm_gettimeoffset(void) } #endif -void __init plat_timer_setup(struct irqaction *irq) +void au1xxx_timer_setup(struct irqaction *irq) { - unsigned int est_freq; + unsigned int est_freq; + extern unsigned long (*do_gettimeoffset)(void); printk("calculating r4koff... "); r4k_offset = cal_r4koff();