Page MenuHomeFreeBSD

sched_4bsd: rename runq to runq_global
Needs ReviewPublic

Authored by minsoochoo0122_proton.me on Mon, Jul 6, 10:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 16, 3:23 PM
Unknown Object (File)
Wed, Jul 15, 9:56 AM
Unknown Object (File)
Mon, Jul 13, 9:02 PM
Unknown Object (File)
Mon, Jul 13, 10:09 AM
Unknown Object (File)
Mon, Jul 13, 6:08 AM
Unknown Object (File)
Sun, Jul 12, 11:36 PM
Unknown Object (File)
Sun, Jul 12, 11:32 PM
Unknown Object (File)
Sun, Jul 12, 7:04 PM
Subscribers

Details

Reviewers
olce
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 Passed
Unit
No Test Coverage
Build Status
Buildable 74594
Build 71477: arc lint + arc unit

Event Timeline

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:)

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.

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.