aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-06 19:26:02 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-09 16:35:33 -0500
commit5e40fcc568a204ce8b96f734a71402d0ca52e076 (patch)
treecc9a78c73e1397395fc90ce3f31b7b0841c6953d /src
parent39db6fe3e50ac2dc9a3699cdc6d984e825852469 (diff)
remove asm/atomic.h
For historic resons, we carry old atomic operations support in liblitmus. This is no longer useful: 1) There is actually no client for these calls in liblitmus. 2) There is now a standard gcc API for this purpose. http://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html Thus, we can reduce our maintenance burden.
Diffstat (limited to 'src')
-rw-r--r--src/kernel_iface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel_iface.c b/src/kernel_iface.c
index 25e0cea..1426795 100644
--- a/src/kernel_iface.c
+++ b/src/kernel_iface.c
@@ -8,7 +8,6 @@
8 8
9#include "litmus.h" 9#include "litmus.h"
10#include "internal.h" 10#include "internal.h"
11#include "asm/atomic.h"
12 11
13#define LITMUS_CTRL_DEVICE "/dev/litmus/ctrl" 12#define LITMUS_CTRL_DEVICE "/dev/litmus/ctrl"
14#define CTRL_PAGES 1 13#define CTRL_PAGES 1
@@ -66,7 +65,7 @@ void exit_np(void)
66{ 65{
67 if (likely(ctrl_page != NULL) && --ctrl_page->np_flag == 0) { 66 if (likely(ctrl_page != NULL) && --ctrl_page->np_flag == 0) {
68 /* became preemptive, let's check for delayed preemptions */ 67 /* became preemptive, let's check for delayed preemptions */
69 barrier(); 68 __sync_synchronize();
70 if (ctrl_page->delayed_preemption) 69 if (ctrl_page->delayed_preemption)
71 sched_yield(); 70 sched_yield();
72 } 71 }