From 46b9358e848aea388fb4ab6265deba11ea8e8823 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Thu, 7 May 2015 15:49:52 +0200 Subject: [PATCH] native: Remove generic atomic_set_return implementation The removed implementation is the same as the generic implementation in core/atomic.c --- cpu/native/atomic_cpu.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 cpu/native/atomic_cpu.c diff --git a/cpu/native/atomic_cpu.c b/cpu/native/atomic_cpu.c deleted file mode 100644 index 6b7afb8f6..000000000 --- a/cpu/native/atomic_cpu.c +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Native CPU atomic.h implementation - * - * Copyright (C) 2013 Ludwig Ortmann - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - * - * @ingroup arch - * @{ - * @file - * @author Ludwig Ortmann - * @} - */ - -#include "atomic.h" -#include "irq.h" -#include "debug.h" - -unsigned int atomic_set_return(unsigned int *val, unsigned int set) -{ - unsigned int old_val; - unsigned int old_state; - - DEBUG("atomic_set_return\n"); - - old_state = disableIRQ(); - - old_val = *val; - *val = set; - - restoreIRQ(old_state); - - return old_val; -}