Re: [RESEND] x86: Refactor __cmpxchg to cmpxchg in lock_cmos

2019-09-24 Thread Borislav Petkov
On Sat, Jan 05, 2019 at 04:29:13PM +0100, Philipp K wrote: > It is unusual to reference __cmpxchg() from other files than cmpxchg.h and > similar. > Instead, cmpxchg() is used, which expands to __cmpxchg() and derives the > 'size' parameter automatically with sizeof(*(ptr)). > > So clean up the lo

[RESEND] x86: Refactor __cmpxchg to cmpxchg in lock_cmos

2019-01-05 Thread Philipp K
It is unusual to reference __cmpxchg() from other files than cmpxchg.h and similar. Instead, cmpxchg() is used, which expands to __cmpxchg() and derives the 'size' parameter automatically with sizeof(*(ptr)). So clean up the lock_cmos() function by using cmpxchg(), without changing the generated c