[sched] [patch] schedule-cleanup-2.5.3-pre2-A1

Ingo Molnar (mingo@elte.hu)
Sun, 20 Jan 2002 14:55:22 +0100 (CET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--8323328-1657085055-1011534922=:7972
Content-Type: TEXT/PLAIN; charset=US-ASCII

the attached patch speeds up and cleans up schedule(), removing the
need_reschedule check on bkl-reacquire. This was needed in 2.2 times when
the big kernel lock was still prominent, but today it's not needed
anymore, especially with the preemption/lowlatency patches that will do
this correctly. This change removes 5 lines from the source code, and a
number of instructions from the scheduler hotpath. (i've also reverted the
switch statement's indentation to the previous, more correct indentation
style.)

Ingo

--8323328-1657085055-1011534922=:7972
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="schedule-cleanup-2.5.3-pre2-A1"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0201201455220.7972@localhost.localdomain>
Content-Description:
Content-Disposition: attachment; filename="schedule-cleanup-2.5.3-pre2-A1"

LS0tIGxpbnV4L2tlcm5lbC9zY2hlZC5jLm9yaWcJU3VuIEphbiAyMCAxMTo0
NzozOSAyMDAyDQorKysgbGludXgva2VybmVsL3NjaGVkLmMJU3VuIEphbiAy
MCAxMTo0Nzo1MyAyMDAyDQpAQCAtNTg5LDI5ICs1ODksMjYgQEANCiAgKi8N
CiBhc21saW5rYWdlIHZvaWQgc2NoZWR1bGUodm9pZCkNCiB7DQotCXRhc2tf
dCAqcHJldiwgKm5leHQ7DQorCXRhc2tfdCAqcHJldiA9IGN1cnJlbnQsICpu
ZXh0Ow0KKwlydW5xdWV1ZV90ICpycSA9IHRoaXNfcnEoKTsNCiAJcHJpb19h
cnJheV90ICphcnJheTsNCi0JcnVucXVldWVfdCAqcnE7DQogCWxpc3RfdCAq
cXVldWU7DQogCWludCBpZHg7DQogDQogCWlmICh1bmxpa2VseShpbl9pbnRl
cnJ1cHQoKSkpDQogCQlCVUcoKTsNCi1u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ribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/