Added API to retrieve the full path of a struct dentry
[akaros.git] / kern / include / smp.h
index fd62d33..d4a4940 100644 (file)
@@ -4,8 +4,7 @@
  * See LICENSE for details.
  */
 
-#ifndef ROS_INC_SMP_H
-#define ROS_INC_SMP_H
+#pragma once
 
 /* SMP related functions */
 
@@ -84,9 +83,7 @@ struct per_cpu_info {
 #define current_ctx per_cpu_info[core_id()].cur_ctx
 
 typedef struct per_cpu_info  per_cpu_info_t;
-
-extern per_cpu_info_t per_cpu_info[MAX_NUM_CPUS];
-extern volatile uint32_t num_cpus;
+extern per_cpu_info_t per_cpu_info[MAX_NUM_CORES];
 
 /* SMP bootup functions */
 void smp_boot(void);
@@ -163,5 +160,3 @@ void pcpui_tr_foreach(int coreid, int type);
 void pcpui_tr_foreach_all(int type);
 void pcpui_tr_reset_all(void);
 void pcpui_tr_reset_and_clear_all(void);
-
-#endif /* ROS_INC_SMP_H */