* acpi_os_sleep()
@ 2004-07-13 16:28 Nishanth Aravamudan
0 siblings, 0 replies; only message in thread
From: Nishanth Aravamudan @ 2004-07-13 16:28 UTC (permalink / raw)
To: len.brown-ral2JQCrhuEAvxtiuMwx3w
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
kernel-janitors-qjLDD68F18O7TbgM5vRIOg
Hi,
In continuing to replace, where appropriate, code with msleep() calls, I
ran across drivers/acpi/osl.c::acpi_os_sleep():
void
acpi_os_sleep(u32 sec, u32 ms)
{
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ * sec + (ms * HZ) / 1000);
}
I was wondering if this needed to run in TASK_INTERRUPTIBLE or whether I
could go ahead and replace it with msleep() (which runs in
TASK_UNINTERRUPTIBLE).
Thanks,
Nish
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-13 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-13 16:28 acpi_os_sleep() Nishanth Aravamudan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox