]> git.hungrycats.org Git - linux/commit
[PATCH] Fix context switch accounting
authorIngo Molnar <mingo@elte.hu>
Mon, 29 Dec 2003 02:23:53 +0000 (18:23 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 02:23:53 +0000 (18:23 -0800)
commitf71d28992475725f9939d771180fa2a70f3df5d3
treeb3a5d51c7c0e9f142959b1ed9c93f9b9c72c7250
parent5326c5351ab2a972767c45bb860915646424eec6
[PATCH] Fix context switch accounting

Noted by Nick Piggin, fix based on a patch by Linus.

I've done some additional cleanups: fixed a compilation warning on UP
and cleaned up the goto pick_next_task code.  Moved the 'unlikely' to
the test as a whole.

I've tested this patch and the context-switch stats look OK.
kernel/sched.c