> All I ment was the if I can't find a generic interfaces for locking > then all the code that depends on __spin_lock will have to be moved to > a subdir that implies sysdeps/mach. In the extreme case what I'll do > is just create stubs in sysdeps/generic, that way __spin_lock will > become the standard locking interface.
This is a clean-up job. If you can't find good generic interfaces for what you need, you should create them and adapt existing code.

