From 1486a08de557b8f237a066a57cc2c74961ba36e0 Mon Sep 17 00:00:00 2001 From: Nicholas Piggin Date: Wed, 29 Nov 2017 15:36:56 +1000 Subject: core/lock: Introduce atomic cmpxchg and implement try_lock with it cmpxchg will be used in a subsequent change, and this reduces the amount of asm code. Signed-off-by: Nicholas Piggin [stewart: fix some ifdef __TEST__ foo to ensure unittests work] Signed-off-by: Stewart Smith --- hw/ipmi/test/run-fru.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw') diff --git a/hw/ipmi/test/run-fru.c b/hw/ipmi/test/run-fru.c index f548311..9f65ed4 100644 --- a/hw/ipmi/test/run-fru.c +++ b/hw/ipmi/test/run-fru.c @@ -17,6 +17,8 @@ #include #include +#define __TEST__ + #include "../ipmi-fru.c" int error = 0; -- cgit v1.1