All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: linux-kernel@vger.kernel.org, hpa@zytor.com,
	john.stultz@linaro.org, tglx@linutronix.de,
	jhbird.choi@gmail.com
Cc: linux-tip-commits@vger.kernel.org
Subject: Re: [tip:timers/core] alarmtimer: Make sure we initialize the rtctimer
Date: Sat, 24 Mar 2012 10:24:52 +0100	[thread overview]
Message-ID: <20120324092452.GA29081@gmail.com> (raw)
In-Reply-To: <tip-ad30dfa94c5cc23931c822922a50bd163ab293a5@git.kernel.org>


* tip-bot for John Stultz <john.stultz@linaro.org> wrote:

> Commit-ID:  ad30dfa94c5cc23931c822922a50bd163ab293a5
> Gitweb:     http://git.kernel.org/tip/ad30dfa94c5cc23931c822922a50bd163ab293a5
> Author:     John Stultz <john.stultz@linaro.org>
> AuthorDate: Fri, 23 Mar 2012 15:52:25 -0700
> Committer:  John Stultz <john.stultz@linaro.org>
> CommitDate: Fri, 23 Mar 2012 16:23:12 -0700
> 
> alarmtimer: Make sure we initialize the rtctimer
> 
> jonghwan Choi reported seeing warnings with the alarmtimer
> code at suspend/resume time, and pointed out that the
> rtctimer isn't being properly initialized.
> 
> This patch corrects this issue.
> 
> Reported-by: jonghwan Choi <jhbird.choi@gmail.com>
> Signed-off-by: John Stultz <john.stultz@linaro.org>
> ---
>  kernel/time/alarmtimer.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
> index 8a46f5d..c165488 100644
> --- a/kernel/time/alarmtimer.c
> +++ b/kernel/time/alarmtimer.c
> @@ -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);
>  
> @@ -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);

This commit breaks every build that has CONFIG_RTC_LIB disabled:

 alarmtimer.c:(.init.text+0x1cc7): undefined reference to `rtc_timer_init'

Thanks,

	Ingo

           reply	other threads:[~2012-03-24  9:24 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tip-ad30dfa94c5cc23931c822922a50bd163ab293a5@git.kernel.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120324092452.GA29081@gmail.com \
    --to=mingo@kernel.org \
    --cc=hpa@zytor.com \
    --cc=jhbird.choi@gmail.com \
    --cc=john.stultz@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.