[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d6f7b7a4-c27f-5ccb-c605-c16f6a7ea2e6@redhat.com>
Date: Tue, 27 Jul 2021 14:19:02 +0200
From: David Hildenbrand <david@...hat.com>
To: Pavel Machek <pavel@....cz>
Cc: Michal Hocko <mhocko@...e.com>, Evan Green <evgreen@...omium.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Alex Shi <alexs@...nel.org>,
Alistair Popple <apopple@...dia.com>,
Jens Axboe <axboe@...nel.dk>,
Johannes Weiner <hannes@...xchg.org>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
"Matthew Wilcox (Oracle)" <willy@...radead.org>,
Miaohe Lin <linmiaohe@...wei.com>,
Minchan Kim <minchan@...nel.org>,
Vlastimil Babka <vbabka@...e.cz>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, linux-api@...r.kernel.org
Subject: Re: [PATCH v2] mm: Enable suspend-only swap spaces
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
Powered by blists - more mailing lists