patch-2.4.0-test4 linux/arch/ppc/kernel/time.c
Next file: linux/arch/ppc/kernel/time.h
Previous file: linux/arch/ppc/kernel/syscalls.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Thu Jul 13 09:42:50 2000
- Orig file:
v2.4.0-test3/linux/arch/ppc/kernel/time.c
- Orig date:
Fri Jun 23 21:55:07 2000
diff -u --recursive --new-file v2.4.0-test3/linux/arch/ppc/kernel/time.c linux/arch/ppc/kernel/time.c
@@ -44,7 +44,7 @@
#include <asm/8xx_immap.h>
#include <asm/machdep.h>
-#include "time.h"
+#include <asm/time.h>
void smp_local_timer_interrupt(struct pt_regs *);
@@ -70,7 +70,9 @@
int timer_interrupt(struct pt_regs * regs)
{
int dval, d;
+#if 0
unsigned long flags;
+#endif
unsigned long cpu = smp_processor_id();
hardirq_enter(cpu);
@@ -120,6 +122,13 @@
if ( !smp_processor_id() )
{
do_timer(regs);
+#if 0
+ /* -- BenH -- I'm removing this for now since it can cause various
+ * troubles with local-time RTCs. Now that we have a
+ * /dev/rtc that uses ppc_md.set_rtc_time() on mac, it
+ * should be possible to program the RTC from userland
+ * in all cases.
+ */
/*
* update the rtc when needed
*/
@@ -135,6 +144,7 @@
last_rtc_update = xtime.tv_sec;
}
read_unlock_irqrestore(&xtime_lock, flags);
+#endif
}
#ifdef CONFIG_SMP
smp_local_timer_interrupt(regs);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)