You cannot use the kernel atomic/interrupt functions from userspace
on ARM. You cannot disable interrupts in userspace, and therefore the
kernel atomic functions do not work as you expect them to.
If it is to do with code to be included into the kernel, then why aren't
you defining __KERNEL__ ?
Therefore this change (as far as ARM goes) makes zero sense.
-- Russell King (email@example.com) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/