Protecting shared resources with preemptive kernel

Zajac Adam-AAZ004 Adam.Zajac at motorola.com
Wed May 12 09:55:59 EST 2004


Hello,
My group has been working on a custom board based on MPC8540 and running
Linux kernel 2.4.20.
We've written some device drivers and came across an issue of protecting
shared resources within the kernel context that one day may have a
preemption turned on.
We tried to evaluate using spin-lock's for that purpose, but there're some
articles on the web that suggest it is not a safe solution when the kernel
preemption is turned on (potentially the kernel may hang).
I was just wondering if anybody has any experience with protecting shared
resources within a kernel context (e.g. for device drivers) when the
preemption is enabled.
Any suggestions and ideas would be greatly appreciated.

Thanks,

Adam Zajac
Motorola Inc, Global Telecom Solutions Sector
5555 N Beach St, Mailstop 8E, Fort Worth, TX 76137-2794
Phone: (817) 245-7963


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list