Skip to contentSkip to conversation

acpi_os_sleep()

Kernel-janitors Nishanth Aravamudan 1 participant 1 message Jul 13, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors