cli() / sti()

Russell Coker - mailing lists account (bofh@snoopy.virtual.net.au)
Thu, 19 Jun 97 23:45:59 +1100


I'm in the middle of hacking the eql driver and I've found a bunch of
cti()/sti() pairs. What should I do with them? I recall reading that
their use is deprecated unless you're dealing with IRQ handlers (not for a
meta device driver) so should I just replace them with spin-locks or would
I need to do more than this?

What is a good strategy for approaching older code with cli()?

For those who are interested I'm trying to make the eql driver handle
multiple eql devices. A single eql device is not enough for an ISP server,
I plan to raise the limit to 256.

Russell Coker