That will end up being a lot of code that really ought to be in one place. > -----Original Message----- > From: linux-acpi-owner@xxxxxxxxxxxxxxx [mailto:linux-acpi- > owner@xxxxxxxxxxxxxxx] On Behalf Of Brown, Len > Sent: Friday, May 12, 2006 11:02 AM > To: Starikovskiy, Alexey Y > Cc: linux-acpi@xxxxxxxxxxxxxxx > Subject: RE: ACPI_ALLOCATE and may sleep warning > > > >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 - 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