Re: [PATCH RFC] locking: Add volatile to arch_spinlock_t structures
From: One Thousand Gnomes
Date: Thu Dec 04 2014 - 16:47:21 EST
> anywhere in that translation unit. After all, any non-static function
> in that translation unit might be called from some other translation
> unit that -did- use locking or whatever.
>
> I will let you know how it goes. ;-)
It breaks DEC10 ;-)
If there is kickback over things like optimisation perhaps the gcc
maintainers could at least consider something like
int __attribute((threadsafe)) fred;
??
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/