public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Francis Moreau <francis.moro@gmail.com>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: Suspend ops on x86 architectures.
Date: Sun, 18 Nov 2007 23:12:22 +0100	[thread overview]
Message-ID: <200711182312.22689.rjw@sisk.pl> (raw)
In-Reply-To: <38b2ab8a0711181319y6d29b1dt1e8014cb3c5f4424@mail.gmail.com>

Hi,

On Sunday, 18 of November 2007, Francis Moreau wrote:
> Hello,
> 
> I'm trying to get an idea on how suspend works on Linux. I already looked at
> Documentation/power, but I'm clueless about x86 architectures. They don't
> seem to define any suspend ops.

Yes, they do, via ACPI.  Please see drivers/acpi/sleep/main.c .

> Can anyone give me some pointers or some hints, I'd like to look at the
> low level part of the suspend on these architectures also I'd like to know
> what kind of events wake up the system once it's suspended. I guess
> interrupts are used but which ones exactly.

This also is controlled by ACPI.  The ACPI platform firmware handles the
wake-up events and transfers control to the kernel by jumping to an address
specified before the suspend.

> Also I'm wondering how jiffies or system clock are updated correctly after
> resuming.

AFAICS, we use the pre-suspend value of jiffies.  The generic clocksource
timekeeping is handled by timekeeping_resume() in kernel/time/timekeeping.c .

Greetings,
Rafael

  reply	other threads:[~2007-11-18 22:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-18 21:19 Suspend ops on x86 architectures Francis Moreau
2007-11-18 22:12 ` Rafael J. Wysocki [this message]
2007-11-19  9:02   ` Francis Moreau

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=200711182312.22689.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=francis.moro@gmail.com \
    --cc=linux-pm@lists.linux-foundation.org \
    /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