Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297387
b: refs/heads/master
c: ad30dfa
h: refs/heads/master
i:
  297385: 3b43d87
  297383: 371d05d
v: v3
  • Loading branch information
John Stultz committed Mar 23, 2012
1 parent 146f662 commit 93c89c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 6b43ae8a619d17c4935c3320d2ef9e92bdeed05d
refs/heads/master: ad30dfa94c5cc23931c822922a50bd163ab293a5
5 changes: 4 additions & 1 deletion trunk/kernel/time/alarmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ static struct alarm_base {
static ktime_t freezer_delta;
static DEFINE_SPINLOCK(freezer_delta_lock);

static struct rtc_timer rtctimer;

#ifdef CONFIG_RTC_CLASS
/* rtc timer and device for setting alarm wakeups at suspend */
static struct rtc_timer rtctimer;
static struct rtc_device *rtcdev;
static DEFINE_SPINLOCK(rtcdev_lock);

Expand Down Expand Up @@ -783,6 +784,8 @@ static int __init alarmtimer_init(void)
.nsleep = alarm_timer_nsleep,
};

rtc_timer_init(&rtctimer, NULL, NULL);

posix_timers_register_clock(CLOCK_REALTIME_ALARM, &alarm_clock);
posix_timers_register_clock(CLOCK_BOOTTIME_ALARM, &alarm_clock);

Expand Down

0 comments on commit 93c89c8

Please sign in to comment.