Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60547
b: refs/heads/master
c: 0c358e7
h: refs/heads/master
i:
  60545: 1842633
  60543: 2669884
v: v3
  • Loading branch information
Johannes Berg authored and Paul Mackerras committed Jun 25, 2007
1 parent 8ab2b31 commit c02d4c0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 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: ee46a90b599952bb1a9dc67f894710017e7cc409
refs/heads/master: 0c358e70762861f8d479f3fa8bec358c599ba04a
5 changes: 0 additions & 5 deletions trunk/arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ mainmenu "Linux/PowerPC Kernel Configuration"

source "arch/powerpc/platforms/Kconfig.cputype"

config PPC_PM_NEEDS_RTC_LIB
bool
select RTC_LIB
default y if PM

config PPC32
bool
default y if !PPC64
Expand Down
14 changes: 12 additions & 2 deletions trunk/arch/powerpc/sysdev/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ static int timer_resume(struct sys_device *dev)

/* get current RTC time and convert to seconds */
get_rtc_time(&cur_rtc_tm);
rtc_tm_to_time(&cur_rtc_tm, &cur_rtc_time);
cur_rtc_time = mktime(cur_rtc_tm.tm_year + 1900,
cur_rtc_tm.tm_mon + 1,
cur_rtc_tm.tm_mday,
cur_rtc_tm.tm_hour,
cur_rtc_tm.tm_min,
cur_rtc_tm.tm_sec);

diff = cur_rtc_time - suspend_rtc_time;

Expand All @@ -44,7 +49,12 @@ static int timer_suspend(struct sys_device *dev, pm_message_t state)
WARN_ON(!ppc_md.get_rtc_time);

get_rtc_time(&suspend_rtc_tm);
rtc_tm_to_time(&suspend_rtc_tm, &suspend_rtc_time);
suspend_rtc_time = mktime(suspend_rtc_tm.tm_year + 1900,
suspend_rtc_tm.tm_mon + 1,
suspend_rtc_tm.tm_mday,
suspend_rtc_tm.tm_hour,
suspend_rtc_tm.tm_min,
suspend_rtc_tm.tm_sec);

return 0;
}
Expand Down

0 comments on commit c02d4c0

Please sign in to comment.