Some code clean and make the cache adapt version compile
[IRC.git] / Robust / src / Runtime / bamboo / multicoretask.c
index 5c922fd8d8fd4edf58dff46af9483ea890a012fb..2a3c7b2796270005195c2331cc5b0725d200eadb 100644 (file)
@@ -3,10 +3,7 @@
 #include "multicoreruntime.h"
 #include "multicoretaskprofile.h"
 #include "multicoretask.h"
-
-#ifndef INLINE
-#define INLINE    inline __attribute__((always_inline))
-#endif 
+#include "multicore.h"
 
 //  data structures for task invocation
 struct genhashtable * activetasks;
@@ -56,7 +53,7 @@ INLINE void dislocktable() {
 #endif
 }
 
-INLINE void inittaskdata() {
+void inittaskdata() {
   if(STARTUPCORE == BAMBOO_NUM_OF_CORE) {
     // startup core to initialize corestatus[]
     total_num_t6 = 0; // TODO for test
@@ -74,7 +71,7 @@ INLINE void inittaskdata() {
   INIT_TASKPROFILE_DATA();
 }
 
-INLINE void distaskdata() {
+void distaskdata() {
   if(activetasks != NULL) {
     genfreehashtable(activetasks);
   }