[ACPI] S3 resume: avoid kmalloc() might_sleep oops symptom
ACPI now uses kmalloc(...,GPF_ATOMIC) during suspend/resume. http://bugzilla.kernel.org/show_bug.cgi?id=3469 Signed-off-by: David Shaohua Li <shaohua.li@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Cette révision appartient à :

révisé par
Len Brown

Parent
8066eff0a1
révision
11e981f1e0
@@ -145,10 +145,14 @@ acpi_os_vprintf(const char *fmt, va_list args)
|
||||
#endif
|
||||
}
|
||||
|
||||
extern int acpi_in_resume;
|
||||
void *
|
||||
acpi_os_allocate(acpi_size size)
|
||||
{
|
||||
return kmalloc(size, GFP_KERNEL);
|
||||
if (acpi_in_resume)
|
||||
return kmalloc(size, GFP_ATOMIC);
|
||||
else
|
||||
return kmalloc(size, GFP_KERNEL);
|
||||
}
|
||||
|
||||
void
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur