lkml.org 
[lkml]   [2021]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] mm: Enable suspend-only swap spaces
From
Date
On 27.07.21 14:04, Pavel Machek wrote:
> Hi!
>
>> Let's take a look at hibernate() callers:
>>
>> drivers/mfd/tps65010.c: calls hibernate() from IRQ contex, based on HW
>> event
>
> No it does not. Look again.
>

Oh, dead code :)

>> kernel/power/autosleep.c: calls hibernate() when it thinks it might be
>> a good time to go to sleep
>
> Ok, you are right, it is there. But I don't believe anyone uses this
> configuration.

If it's dead code, we might want to look into deprecating and removing
it. It was introduced around 2012:

https://lwn.net/Articles/479841/


--
Thanks,

David / dhildenb

\
 
 \ /
  Last update: 2021-07-27 14:20    [W:0.084 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site