[patch] softirq-2.4.6-C3

Ingo Molnar (mingo@elte.hu)
Wed, 6 Jun 2001 10:22:54 +0200 (CEST)


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-1998459672-991815774=:2612
Content-Type: TEXT/PLAIN; charset=US-ASCII

a number of softirq.c updates (the patch is still relative to -B4 and
includes all -C2 changes as well):

- do_softirq() does not have to keep irqs disabled when returning.

- in do_softirq(), disable_local_bh() can be done after checking for
pending softirqs.

- the goto retry thing has no effect on gcc's code, so it's an unnecessery
complication of the code.

- ditto the in_interrupt() check, no point in doing a goto, gcc optimizes
this already.

do_softirq() is now a very compact and straightforward function.

Ingo

--8323328-1998459672-991815774=:2612
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="softirq-2.4.6-C3"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0106061022530.2612@localhost.localdomain>
Content-Description:
Content-Disposition: attachment; filename="softirq-2.4.6-C3"

LS0tIGxpbnV4L2tlcm5lbC9zb2Z0aXJxLmMub3JpZwlXZWQgSnVuICA2IDA5
OjAwOjEzIDIwMDENCisrKyBsaW51eC9rZXJuZWwvc29mdGlycS5jCVdlZCBK
dW4gIDYgMDk6NTY6MDYgMjAwMQ0KQEAgLTUyLDE3ICs1MiwxNyBAQA0KIAlp
bnQgY3B1ID0gc21wX3Byb2Nlc3Nvcl9pZCgpOw0KIAlfX3UzMiBwZW5kaW5n
Ow0KIA0KLQlsb2NhbF9pcnFfZGlzYWJsZSgpOw0KIAlpZiAoaW5faW50ZXJy
dXB0KCkpDQotCQlnb3RvIG91dDsNCisJCXJldHVybjsNCiANCi0JbG9jYWxf
YmhfZGlzYWJsZSgpOw0KKwlsb2NhbF9pcnFfZGlzYWJsZSgpOw0KIA0KIAlw
ZW5kaW5nID0gc29mdGlycV9wZW5kaW5nKGNwdSk7DQogDQogCWlmIChwZW5k
aW5nKSB7DQogCQlzdHJ1Y3Qg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CWptcCByZXN0b3JlX2FsbA0K
IA0KIAlBTElHTg0KQEAgLTI3Niw4ICsyNDgsNiBAQA0KIAlBTElHTg0KIHJl
dF9mcm9tX2V4Y2VwdGlvbjoNCiAJY2xpDQotCUNIRUNLX1NPRlRJUlENCi0J
am5lIGhhbmRsZV9zb2Z0aXJxDQogCWNtcGwgJDAsbmVlZF9yZXNjaGVkKCVl
YngpDQogCWpuZSByZXNjaGVkdWxlDQogCWNtcGwgJDAsc2lncGVuZGluZygl
ZWJ4KQ0KQEAgLTI5MiwxMSArMjYyLDYgQEANCiAJam5lIHJldF9mcm9tX3N5
c19jYWxsDQogCWptcCByZXN0b3JlX2FsbA0KIA0KLQlBTElHTg0KLWhhbmRs
ZV9zb2Z0aXJxOg0KLQljYWxsIFNZTUJPTF9OQU1FKGRvX3NvZnRpcnEpDQot
CWptcCByZXRfZnJvbV9pbnRyDQotCQ0KIAlBTElHTg0KIHJlc2NoZWR1bGU6
DQogCWNhbGwgU1lNQk9MX05BTUUoc2NoZWR1bGUpICAgICMgdGVzdA0K
--8323328-1998459672-991815774=:2612--
-
To unsubscribe 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/