lkml.org 
[lkml]   [2004]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: explanation of apm_do_idle()
Date
-----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-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.035 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site