Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CURRENT broken on Raspberry Pi 2?



> On Mar 5, 2019, at 9:59 PM, Ryo Shimizu <ryo%nerv.org@localhost> wrote:
> 
> Since at least linux_workqueue should not be stopped as long as it is
> used (by DRM or DWC2), we need to make linux_workqueue_init/fini nestable,
> or simply empty linux_workqueue_fini() to keep worker thread running
> all the time I guess.

Might I suggest a reference count?  RUN_ONCE() can initialize the mutex around the counter, and then the counter can keep track of the init's and fini's called, and only do the work on the 0->1 edge and the 1->0 edge.

-- thorpej



Home | Main Index | Thread Index | Old Index