lkml.org 
[lkml]   [2017]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 5/5] pm: remove kernel thread freezing
On Tue, 3 Oct 2017, Jiri Kosina wrote:

> > What about the many drivers outside filesystems that use the
> > set_freezable() / try_to_freeze() / wait_event_freezable() API?
>
> Many/most of them are just completely bogus and pointless.

More specifically -- they don't really care at all whether they get
scheduled out exactly at the try_to_freeze() point; they are perfectly
happy being scheduled out at any other scheduling point, and land on
runqueue after the resume has been completed.

Sure, certain drivers need to take action when system is undergoing
hibernation/suspend. But that's what PM callbacks are for, not kthread
hibernation.

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2017-10-03 22:52    [W:0.087 / U:1.984 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site