aboutsummaryrefslogtreecommitdiffstats
path: root/arch/h8300/kernel/time.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-11-12 00:13:14 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-12 00:13:14 -0500
commit4b4d2b463461f1b86fd89353184e6f2938e7566b (patch)
treec134da666c752e4e181b5d6fb27375c0c763bae0 /arch/h8300/kernel/time.c
parent9b66bfb28049594fe2bb2b91607ba302f511ce8b (diff)
parentb400126add8fccf47ff663e5f20604e121f55f84 (diff)
Merge tag 'h8300-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull h8300 platform removal from Guenter Roeck: "The patch series has been in -next for more than one relase cycle. I did get a number of Acks, and no objections. H8/300 has been dead for several years, the kernel for it has not compiled for ages, and recent versions of gcc for it are broken. Remove support for it" * tag 'h8300-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: CREDITS: Add Yoshinori Sato for h8300 fs/minix: Drop dependency on H8300 Drop remaining references to H8/300 architecture Drop MAINTAINERS entry for H8/300 watchdog: Drop references to H8300 architecture net/ethernet: Drop H8/300 Ethernet driver net/ethernet: smsc9194: Drop conditional code for H8/300 ide: Drop H8/300 driver Drop support for Renesas H8/300 (h8300) architecture
Diffstat (limited to 'arch/h8300/kernel/time.c')
-rw-r--r--arch/h8300/kernel/time.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/arch/h8300/kernel/time.c b/arch/h8300/kernel/time.c
deleted file mode 100644
index e0f74191d553..000000000000
--- a/arch/h8300/kernel/time.c
+++ /dev/null
@@ -1,66 +0,0 @@
1/*
2 * linux/arch/h8300/kernel/time.c
3 *
4 * Yoshinori Sato <ysato@users.sourceforge.jp>
5 *
6 * Copied/hacked from:
7 *
8 * linux/arch/m68k/kernel/time.c
9 *
10 * Copyright (C) 1991, 1992, 1995 Linus Torvalds
11 *
12 * This file contains the m68k-specific time handling details.
13 * Most of the stuff is located in the machine specific files.
14 *
15 * 1997-09-10 Updated NTP code according to technical memorandum Jan '96
16 * "A Kernel Model for Precision Timekeeping" by Dave Mills
17 */
18
19#include <linux/errno.h>
20#include <linux/module.h>
21#include <linux/sched.h>
22#include <linux/kernel.h>
23#include <linux/param.h>
24#include <linux/string.h>
25#include <linux/mm.h>
26#include <linux/timex.h>
27#include <linux/profile.h>
28
29#include <asm/io.h>
30#include <asm/irq_regs.h>
31#include <asm/timer.h>
32
33#define TICK_SIZE (tick_nsec / 1000)
34
35void h8300_timer_tick(void)
36{
37 if (current->pid)
38 profile_tick(CPU_PROFILING);
39 xtime_update(1);
40 update_process_times(user_mode(get_irq_regs()));
41}
42
43void read_persistent_clock(struct timespec *ts)
44{
45 unsigned int year, mon, day, hour, min, sec;
46
47 /* FIX by dqg : Set to zero for platforms that don't have tod */
48 /* without this time is undefined and can overflow time_t, causing */
49 /* very strange errors */
50 year = 1980;
51 mon = day = 1;
52 hour = min = sec = 0;
53#ifdef CONFIG_H8300_GETTOD
54 h8300_gettod (&year, &mon, &day, &hour, &min, &sec);
55#endif
56 if ((year += 1900) < 1970)
57 year += 100;
58 ts->tv_sec = mktime(year, mon, day, hour, min, sec);
59 ts->tv_nsec = 0;
60}
61
62void __init time_init(void)
63{
64
65 h8300_timer_setup();
66}