Page MenuHomeFreeBSD

sched_4bsd: rename runq to runq_global
ClosedPublic

Authored by mchoo on Mon, Jul 6, 10:24 PM.
Tags
None
Referenced Files
F164413371: D58065.diff
Fri, Jul 31, 5:34 PM
F164363825: D58065.diff
Fri, Jul 31, 5:02 AM
Unknown Object (File)
Wed, Jul 29, 10:32 PM
Unknown Object (File)
Wed, Jul 29, 4:02 AM
Unknown Object (File)
Tue, Jul 28, 12:54 PM
Unknown Object (File)
Mon, Jul 27, 9:04 PM
Unknown Object (File)
Sun, Jul 26, 8:24 PM
Unknown Object (File)
Thu, Jul 23, 4:35 AM
Subscribers

Details

Summary

In upcoming changes, 'struct td_sched' will store CPU ID of the thread's
current runqueue instead of a pointer to the runqueue. This requires
functions to store pointer to the runqueue as a local variable. Although
the name 'runq' seams ideal for these local variables, it is already
taken by the global runqueue. Thus rename the global runqueue to
'runq_global' to hint the variable is the global runqueue and yield the
name 'runq' to local variables.

Suggested by: olce

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mchoo requested review of this revision.Mon, Jul 6, 10:24 PM

Looks much better like that. :-) "Suggested by: olce" appreciated.

Do you want me to commit that? Or can you with jhb@'s approval?

This revision is now accepted and ready to land.Tue, Jul 7, 2:45 PM
This revision now requires review to proceed.Tue, Jul 7, 5:44 PM

Do you want me to commit that? Or can you with jhb@'s approval?

Since I don't have commit bit yet, could you push it for me? Thanks:)

In D58065#1332040, @minsoochoo0122_proton.me wrote:

Since I don't have commit bit yet, could you push it for me? Thanks:)

Sure. With the minsoo.io address I presume? Also, did you do some smoke test with this change (it is low risk, but still...)? I'll probably do some tomorrow before committing.

In D58065#1332040, @minsoochoo0122_proton.me wrote:

Since I don't have commit bit yet, could you push it for me? Thanks:)

Sure. With the minsoo.io address I presume?

Yes.

Also, did you do some smoke test with this change (it is low risk, but still...)? I'll probably do some tomorrow before committing.

My computer successfully booted and I can login with this patch and the D58000, but I haven't run any test suite. I would appreciate you a lot if you can do that for me.

This revision was not accepted when it landed; it landed in state Needs Review.Tue, Jul 21, 2:27 AM
This revision was automatically updated to reflect the committed changes.