[RFC PATCH 10/15] x86: Use ISO atomics

2016-05-18 Thread David Howells
Make x86 use the ISO intrinsic atomics. This boots fine, however it can't NOP out the LOCK prefixes if the number of online CPUs is 1. Without this patch, according to size -A, .text for my test kernel is: .text 6268981 18446744071578845184 with this patch:

[RFC PATCH 10/15] x86: Use ISO atomics

2016-05-18 Thread David Howells
Make x86 use the ISO intrinsic atomics. This boots fine, however it can't NOP out the LOCK prefixes if the number of online CPUs is 1. Without this patch, according to size -A, .text for my test kernel is: .text 6268981 18446744071578845184 with this patch: