[M68KNOMMU]: cleanup m68knommu timer code

Previous thread: [patch] x86: lock bitops by Nick Piggin on Thursday, October 18, 2007 - 10:13 pm. (1 message)

Next thread: nfsv2 ref leak in 2.6.24? by Erez Zadok on Thursday, October 18, 2007 - 10:49 pm. (11 messages)
From: Greg Ungerer
Date: Thursday, October 18, 2007 - 10:29 pm

Reduce the function pointer mess of the m68knommu timer code.
Call direct to the local hardware's timer setup, and expose the local
common timer interrupt handler to the lower level hardware timer.
Ultimately this will save definitions of all these functions across
all the platform code to setup the function pointers (which for
any given m68knommu CPU family member can be only one set of hardware
timer functions).

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
---

diffstat (relative to arch/m68knommu):
 kernel/setup.c          |    9 ---------
 kernel/time.c           |   22 ++++++++--------------
 platform/5206/config.c  |    9 ---------
 platform/5206e/config.c |   10 ----------
 platform/520x/config.c  |    8 +-------
 platform/523x/config.c  |    8 --------
 platform/5249/config.c  |   10 ----------
 platform/5272/config.c  |   10 ----------
 platform/527x/config.c  |    8 --------
 platform/528x/config.c  |    8 --------
 platform/5307/config.c  |   10 ----------
 platform/5307/pit.c     |   15 +++++++++------
 platform/5307/timers.c  |   19 +++++++++++--------
 platform/532x/config.c  |   10 ----------
 platform/5407/config.c  |   10 ----------
 15 files changed, 29 insertions(+), 137 deletions(-)


diff -Naurp linux-2.6.23/arch/m68knommu/kernel/setup.c linux-2.6.23.timers/arch/m68knommu/kernel/setup.c
--- linux-2.6.23/arch/m68knommu/kernel/setup.c	2007-10-10 06:31:38.000000000 +1000
+++ linux-2.6.23.timers/arch/m68knommu/kernel/setup.c	2007-10-19 15:08:24.000000000 +1000
@@ -287,12 +287,3 @@ struct seq_operations cpuinfo_op = {
 	.show	= show_cpuinfo,
 };
 
-void arch_gettod(int *year, int *mon, int *day, int *hour,
-		 int *min, int *sec)
-{
-	if (mach_gettod)
-		mach_gettod(year, mon, day, hour, min, sec);
-	else
-		*year = *mon = *day = *hour = *min = *sec = 0;
-}
-
diff -Naurp linux-2.6.23/arch/m68knommu/kernel/time.c linux-2.6.23.timers/arch/m68knommu/kernel/time.c
--- linux-2.6.23/arch/m68knommu/kernel/time.c	2007-10-10 06:31:38.000000000 ...
Previous thread: [patch] x86: lock bitops by Nick Piggin on Thursday, October 18, 2007 - 10:13 pm. (1 message)

Next thread: nfsv2 ref leak in 2.6.24? by Erez Zadok on Thursday, October 18, 2007 - 10:49 pm. (11 messages)