summaryrefslogtreecommitdiff
path: root/core/minute-ia/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/minute-ia/atomic.h')
-rw-r--r--core/minute-ia/atomic.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/minute-ia/atomic.h b/core/minute-ia/atomic.h
index dbcd04b7de..e722d799c8 100644
--- a/core/minute-ia/atomic.h
+++ b/core/minute-ia/atomic.h
@@ -1,4 +1,4 @@
-/* Copyright 2016 The Chromium OS Authors. All rights reserved.
+/* Copyright 2016 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -13,13 +13,13 @@
#include "util.h"
static inline int bool_compare_and_swap_u32(uint32_t *var, uint32_t old_value,
- uint32_t new_value)
+ uint32_t new_value)
{
uint32_t _old_value = old_value;
__asm__ __volatile__(ASM_LOCK_PREFIX "cmpxchgl %2, %1"
- : "=a" (old_value), "+m" (*var)
- : "r" (new_value), "0" (old_value)
+ : "=a"(old_value), "+m"(*var)
+ : "r"(new_value), "0"(old_value)
: "memory");
return (_old_value == old_value);
@@ -65,4 +65,4 @@ static inline atomic_val_t atomic_clear(atomic_t *addr)
return __atomic_exchange_n(addr, 0, __ATOMIC_SEQ_CST);
}
-#endif /* __CROS_EC_ATOMIC_H */
+#endif /* __CROS_EC_ATOMIC_H */