Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146794
b: refs/heads/master
c: 8be5f1a
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed May 12, 2009
1 parent 12d39ff commit 1283bea
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 121 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f19900b2e608b604777a74d6d711bbf744657756
refs/heads/master: 8be5f1a68f2c14082939dd54e7037dcee2eb54f8
11 changes: 0 additions & 11 deletions trunk/arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -494,17 +494,6 @@ config SH_TIMER_MTU2
help
This enables build of the MTU2 timer driver.

config SH_TIMER_IRQ
int
default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \
CPU_SUBTYPE_SH7763
default "86" if CPU_SUBTYPE_SH7619
default "140" if CPU_SUBTYPE_SH7206
default "142" if CPU_SUBTYPE_SH7203 && SH_CMT
default "153" if CPU_SUBTYPE_SH7203 && SH_MTU2
default "238" if CPU_SUBTYPE_MXG
default "16"

config SH_PCLK_FREQ
int "Peripheral clock frequency (in Hz)"
default "27000000" if CPU_SUBTYPE_SH7343
Expand Down
28 changes: 0 additions & 28 deletions trunk/arch/sh/include/asm/timer.h

This file was deleted.

2 changes: 1 addition & 1 deletion trunk/arch/sh/kernel/Makefile_32
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ obj-y := debugtraps.o idle.o io.o io_generic.o irq.o \
sys_sh.o sys_sh32.o syscalls_32.o time.o topology.o \
traps.o traps_32.o

obj-y += cpu/ timers/
obj-y += cpu/
obj-$(CONFIG_VSYSCALL) += vsyscall/
obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/kernel/Makefile_64
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ obj-y := debugtraps.o idle.o io.o io_generic.o irq.o machvec.o process_64.o \
ptrace_64.o setup.o signal_64.o sys_sh.o sys_sh64.o \
syscalls_64.o time.o topology.o traps.o traps_64.o

obj-y += cpu/ timers/
obj-y += cpu/
obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_SH_CPU_FREQ) += cpufreq.o
obj-$(CONFIG_MODULES) += sh_ksyms_64.o module.o
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/sh/kernel/cpu/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <linux/platform_device.h>
#include <linux/proc_fs.h>
#include <asm/clock.h>
#include <asm/timer.h>

static LIST_HEAD(clock_list);
static DEFINE_SPINLOCK(clock_lock);
Expand Down
29 changes: 2 additions & 27 deletions trunk/arch/sh/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
#include <linux/rtc.h>
#include <asm/clock.h>
#include <asm/rtc.h>
#include <asm/timer.h>

struct sys_timer *sys_timer;

/* Dummy RTC ops */
static void null_rtc_get_time(struct timespec *tv)
Expand Down Expand Up @@ -94,20 +91,9 @@ module_init(rtc_generic_init);

void (*board_time_init)(void);

struct clocksource clocksource_sh = {
.name = "SuperH",
};

unsigned long long sched_clock(void)
{
unsigned long long cycles;

/* jiffies based sched_clock if no clocksource is installed */
if (!clocksource_sh.rating)
return (jiffies_64 - INITIAL_JIFFIES) * (NSEC_PER_SEC / HZ);

cycles = clocksource_sh.read(&clocksource_sh);
return cyc2ns(&clocksource_sh, cycles);
return (jiffies_64 - INITIAL_JIFFIES) * (NSEC_PER_SEC / HZ);
}

static void __init sh_late_time_init(void)
Expand All @@ -117,18 +103,7 @@ static void __init sh_late_time_init(void)
* Run probe() for one "earlytimer" device.
*/
early_platform_driver_register_all("earlytimer");
if (early_platform_driver_probe("earlytimer", 1, 0))
return;

/*
* Find the timer to use as the system timer, it will be
* initialized for us.
*/
sys_timer = get_sys_timer();
if (unlikely(!sys_timer))
panic("System timer missing.\n");

printk(KERN_INFO "Using %s for system timer\n", sys_timer->name);
early_platform_driver_probe("earlytimer", 1, 0);
}

void __init time_init(void)
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/sh/kernel/timers/Makefile

This file was deleted.

46 changes: 0 additions & 46 deletions trunk/arch/sh/kernel/timers/timer.c

This file was deleted.

0 comments on commit 1283bea

Please sign in to comment.