Pull sbs into release branch
[sfrench/cifs-2.6.git] / arch / arm / mach-pxa / time.c
index fc3b82a740a0b021f188d7801c3da29f93723b74..6f91fd2d061ab0b9dc5062d5db3c551e03f6198e 100644 (file)
 #include <asm/arch/pxa-regs.h>
 
 
-static inline unsigned long pxa_get_rtc_time(void)
-{
-       return RCNR;
-}
-
 static int pxa_set_rtc(void)
 {
        unsigned long current_time = xtime.tv_sec;
@@ -97,7 +92,7 @@ pxa_timer_interrupt(int irq, void *dev_id)
 
 static struct irqaction pxa_timer_irq = {
        .name           = "PXA Timer Tick",
-       .flags          = IRQF_DISABLED | IRQF_TIMER,
+       .flags          = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
        .handler        = pxa_timer_interrupt,
 };
 
@@ -122,10 +117,6 @@ static void __init pxa_timer_init(void)
 
        set_rtc = pxa_set_rtc;
 
-       tv.tv_nsec = 0;
-       tv.tv_sec = pxa_get_rtc_time();
-       do_settimeofday(&tv);
-
        OIER = 0;               /* disable any timer interrupts */
        OSSR = 0xf;             /* clear status on all timers */
        setup_irq(IRQ_OST0, &pxa_timer_irq);