---1463418623-109224820-931018618=:1371
Content-Type: TEXT/PLAIN; charset=US-ASCII
The patch above it's to implement a better usage of spinlocks in misc
networking drivers, as Linus says in Documentation/spinlocks.txt you must
use the irq version of spinlocks in interrupt handlers. The patch try to
do this in some 3com cards and in Donald's skeleton.c (for future hackers
reference), but there many others drivers that I need to look in next
weeks.
-- Augusto Cesar Radtke Sekure SDI http://www.sekure.org
---1463418623-109224820-931018618=:1371 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=net-spinlocks Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.10.9907031316580.1371@bishop.psychadelic.org> Content-Description: Content-Disposition: attachment; filename=net-spinlocks
LS0tIDNjNTAxLmMub3JpZwlTYXQgSnVsICAzIDEyOjQ5OjA4IDE5OTkNCisr KyAzYzUwMS5jCVNhdCBKdWwgIDMgMTI6NTE6MTAgMTk5OQ0KQEAgLTQ4NCw2 ICs0ODQsNyBAQA0KIAlzdHJ1Y3QgbmV0X2xvY2FsICpscDsNCiAJaW50IGlv YWRkcjsNCiAJaW50IGF4c3I7CQkJLyogQXV4LiBzdGF0dXMgcmVnLiAqLw0K Kwl1bnNpZ25lZCBsb25nIGZsYWdzOw0KIA0KIAlpZiAoZGV2ID09IE5VTEwg IHx8ICBkZXYtPmlycSAhPSBpcnEpDQogCXsNCkBAIC00OTQsNyArNDk1LDcg QEANCiAJaW9hZGRyID0gZGV2LT5iYXNlX2FkZHI7DQogCWxwID0gKHN0cnVj dCBuZXRfbG9jYWwgKilkZXYtPnByaXY7DQogDQotCXNwaW5fbG9jaygmbHAt PmxvY2spOw0KKwlzcGluX2xvY2tfaXJxc2F2ZSgmbHAtPmxvY2ssIGZsYWdz KTsNCiAJDQogCS8qDQogCSAqCVdoYXQgaGFwcGVuZWQgPw0KQEAgLTUzNCw3 ICs1MzUsNyBAQA0KIAkJCX0NCiAJCQlscC0+bG9hZGluZz0yOwkJLyogRm9y Y2UgYSByZWxvYWQgKi8NCiAJCQlkZXYtPmludGVycnV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ENhdGFyaW5hDQorUzogQnJhemlsDQorDQogTjogRXJpYyBTLiBSYXlt b25kDQogRTogZXNyQHRoeXJzdXMuY29tDQogVzogaHR0cDovL3d3dy50dXhl ZG8ub3JnL35lc3IvDQo= ---1463418623-109224820-931018618=:1371--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/