Page MenuHomeFreeBSD

linuxkpi: Add rcu_work functions.
ClosedPublic

Authored by manu on Thu, May 21, 2:56 PM.

Details

Summary

The rcu_work function helps to queue some work after waiting for a grace
period.
This is needed by DRM drivers.

Sponsored-by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

manu created this revision.Thu, May 21, 2:56 PM
manu requested review of this revision.Thu, May 21, 2:56 PM
hselasky added inline comments.Thu, May 21, 6:41 PM
sys/compat/linuxkpi/common/src/linux_work.c
168 ↗(On Diff #72075)

I think you should pass WORK_CPU_UNBOUND instead of 0 there, even though the argument is not used.

197 ↗(On Diff #72075)

Insert empty line at top of function when no local variables - BSD style.

202 ↗(On Diff #72075)

Remove this empty line.

manu updated this revision to Diff 72086.Thu, May 21, 6:55 PM
manu marked 3 inline comments as done.
hselasky accepted this revision.Thu, May 21, 7:57 PM

Don't forget to MFC.

This revision is now accepted and ready to land.Thu, May 21, 7:57 PM
This revision was automatically updated to reflect the committed changes.