RE: ACPI_ALLOCATE and may sleep warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>Could we do something like this:
>
>#define ACPI_ALLOCATE(a)	kmalloc((a),
(in_atomic())?GFP_ATOMIC:GFP_KERNEL)
>#define ACPI_ALLOCATE_ZEROED(a)	kzalloc((a),
(in_atomic())?GFP_ATOMIC:GFP_KERNEL)

The question is if we allocate with interrupts off
only on resume, or during normal operation.

If it is only during resume, then I think we should
be using the exact same mechanism that we use
during boot, It must also apply to semaphores,
not just kmalloc.

-Len
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux