From: Michael Buesch <mbuesch@freenet.de>
To: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: explanation of apm_do_idle()
Date: Wed, 14 Jul 2004 14:44:51 +0200 [thread overview]
Message-ID: <200407141444.54850.mbuesch@freenet.de> (raw)
In-Reply-To: <200407052227.29141.mbuesch@freenet.de>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Huh? Nobody out there who could explain it, please?
I'm surprised. 8-}
Quoting Michael Buesch <mbuesch@freenet.de>:
> Hi,
>
> What's the purpose of
> t = jiffies;
> in apm_do_idle()?
> Looks very strange and incorrect to me,
> but I think there's a reason for it.
> Sorry for stealing your time, but I really don't get behind it.
> Thank you!
>
>
> static int apm_do_idle(void)
> {
> u32 eax;
>
> if (apm_bios_call_simple(APM_FUNC_IDLE, 0, 0, &eax)) {
> static unsigned long t;
>
> /* This always fails on some SMP boards running UP kernels.
> * Only report the failure the first 5 times.
> */
> if (++t < 5)
> {
> printk(KERN_DEBUG "apm_do_idle failed (%d)\n",
> (eax >> 8) & 0xff);
> t = jiffies;
> }
> return -1;
> }
> clock_slowed = (apm_info.bios.flags & APM_IDLE_SLOWS_CLOCK) != 0;
> return clock_slowed;
> }
>
- --
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA9SrEFGK1OIvVOP4RAoG2AJsHeED0ikwA/qBnE82mte1oJRdr4QCgly1i
FOOwCgDMYdV76sXcdH5D5Dk=
=HbDh
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2004-07-14 12:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-05 20:27 explanation of apm_do_idle() Michael Buesch
2004-07-14 12:44 ` Michael Buesch [this message]
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=200407141444.54850.mbuesch@freenet.de \
--to=mbuesch@freenet.de \
--cc=linux-kernel@vger.kernel.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