Re: [PATCH v5 10/20] kthread: Better support freezable kthread workers

From: Petr Mladek
Date: Fri Feb 26 2016 - 10:43:13 EST


On Thu 2016-02-25 14:01:15, Peter Zijlstra wrote:
> On Mon, Feb 22, 2016 at 03:57:00PM +0100, Petr Mladek wrote:
> > +enum {
> > + KTW_FREEZABLE = 1 << 2, /* freeze during suspend */
> > +};
>
> Weird value; what was wrong with 1 << 0 ?

Heh, the flag was inspired by

WQ_FREEZABLE = 1 << 2, /* freeze during suspend */

from include/linux/workqueue.h. But it does not really matter.
I could change it to 1 << 0 if it makes people less curious.

Thanks a lot for review,
Petr