diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2009-04-14 09:13:26 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2009-04-14 09:13:26 +0000 |
commit | 422bb19d43b00d556ea2128df60a4911470b1791 (patch) | |
tree | 0e026fc7bc28241faacf4b813b0642ab40dae32f /sys/arch/hp300/include | |
parent | 56e38014feacef00c9f7ee671e9e5c6090dbf763 (diff) |
Some tweaks to the cpu affinity code.
- Split up choosing of cpu between fork and "normal" cases. Fork is
very different and should be treated as such.
- Instead of implicitly choosing a cpu in setrunqueue, do it outside
where it actually makes sense.
- Just because a cpu is marked as idle doesn't mean it will be soon.
There could be a thundering herd effect if we call wakeup from an
interrupt handler, so subtract cpus with queued processes when
deciding which cpu is actually idle.
- some simplifications allowed by the above.
kettenis@ ok (except one bugfix that was not in the intial diff)
Diffstat (limited to 'sys/arch/hp300/include')
0 files changed, 0 insertions, 0 deletions