Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186497
b: refs/heads/master
c: 0272282
h: refs/heads/master
i:
  186495: 9daf127
v: v3
  • Loading branch information
John Stultz authored and Paul Mundt committed Mar 4, 2010
1 parent 897b1ef commit e57c664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 62c8cbbfc2367e706317f56ac21959120ae72773
refs/heads/master: 0272282f7cffb469cd2676dcb6e58bc942fcf8a8
6 changes: 1 addition & 5 deletions trunk/arch/sh/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ static int null_rtc_set_time(const time_t secs)
void (*rtc_sh_get_time)(struct timespec *) = null_rtc_get_time;
int (*rtc_sh_set_time)(const time_t) = null_rtc_set_time;

#ifdef CONFIG_GENERIC_CMOS_UPDATE
void read_persistent_clock(struct timespec *ts)
{
rtc_sh_get_time(ts);
}

#ifdef CONFIG_GENERIC_CMOS_UPDATE
int update_persistent_clock(struct timespec now)
{
return rtc_sh_set_time(now.tv_sec);
Expand Down Expand Up @@ -113,9 +113,5 @@ void __init time_init(void)
hwblk_init();
clk_init();

rtc_sh_get_time(&xtime);
set_normalized_timespec(&wall_to_monotonic,
-xtime.tv_sec, -xtime.tv_nsec);

late_time_init = sh_late_time_init;
}

0 comments on commit e57c664

Please sign in to comment.