Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192219
b: refs/heads/master
c: 12833c1
h: refs/heads/master
i:
  192217: 8bac0a9
  192215: c5fc38c
v: v3
  • Loading branch information
John Stultz authored and Thomas Gleixner committed Mar 13, 2010
1 parent b78ebe6 commit 675d6a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 739b27116a0e6903d6c85d6769e69f43d8fa4128
refs/heads/master: 12833c1e373ad2b12667ca159d335fae29968473
10 changes: 7 additions & 3 deletions trunk/arch/h8300/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void h8300_timer_tick(void)
update_process_times(user_mode(get_irq_regs()));
}

void __init time_init(void)
void read_persistent_clock(struct timespec *ts)
{
unsigned int year, mon, day, hour, min, sec;

Expand All @@ -56,8 +56,12 @@ void __init time_init(void)
#endif
if ((year += 1900) < 1970)
year += 100;
xtime.tv_sec = mktime(year, mon, day, hour, min, sec);
xtime.tv_nsec = 0;
ts->tv_sec = mktime(year, mon, day, hour, min, sec);
ts->tv_nsec = 0;
}

void __init time_init(void)
{

h8300_timer_setup();
}

0 comments on commit 675d6a0

Please sign in to comment.