public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Zhao Yakui <yakui.zhao@intel.com>
Cc: linux-acpi@vger.kernel.org, lenb@kernel.org, rui.zhang@intel.com
Subject: Re: [RFC] [PATCH 2/3] Call RTC wake_on hook function when alarm is enabled
Date: Wed, 9 Apr 2008 03:08:40 -0700	[thread overview]
Message-ID: <200804090308.40537.david-b@pacbell.net> (raw)
In-Reply-To: <1207762153.4056.53.camel@yakui_zhao.sh.intel.com>

On Wednesday 09 April 2008, Zhao Yakui wrote:
> 
> > instead?  Else I don't see what would disable the
> > alarm when it's supposed to be disabled.  Plus, if
> > that's done here, I suspect it also needs to be
> > done in rtc_ioctl() for RTC_AIE_{ON,OFF} and *NOT*
> > done in cmos_{suspend,resume)() ... very odd for a
> > wakeup hook, since none of those presume the system
> > is entering a state from which it could wake!
> 
> If alarm is only used as the wake event source from sleeping state, it
> is enough to call hook function in suspend/resume.

From what other state could it "wake" though ???
It doesn't "wake" except from sleeping states...


> But if the system is booted with acpi enabled , I suspect whether RTC
> alarm can trigger RTC IRQ.

That is, you just "suspect" it won't work?  That seems
like a weak reason to change things.  And if RTC IRQs
don't actually work at runtime, that'd seem wierd.


> If the RTC alarm is dedicated as the wake 
> event source, it will be also OK to call the hook function when the
> alarm is enabled.

Well, *today* the only client of that hook is ACPI.  But
if there's no actual need to call those wake hooks for
non-wake code paths, I'd sure rather avoid doing that...

- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2008-04-09 10:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-09  6:34 [RFC] [PATCH 2/3] Call RTC wake_on hook function when alarm is enabled Zhao Yakui
2008-04-09  7:48 ` David Brownell
2008-04-09 17:29   ` Zhao Yakui
2008-04-09 10:08     ` David Brownell [this message]
2008-04-10  2:15       ` Zhang, Rui

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=200804090308.40537.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=yakui.zhao@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox