[freenos] r405 committed - Added cpus_total as externally visible in kernel/smp.h

  • From: freenos@xxxxxxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Tue, 19 Oct 2010 00:12:04 +0000

Revision: 405
Author: nieklinnenbank
Date: Mon Oct 18 16:55:01 2010
Log: Added cpus_total as externally visible in kernel/smp.h

http://code.google.com/p/freenos/source/detail?r=405

Modified:
 /branches/scratch/include/kernel/smp.h

=======================================
--- /branches/scratch/include/kernel/smp.h      Sun Oct 10 16:06:55 2010
+++ /branches/scratch/include/kernel/smp.h      Mon Oct 18 16:55:01 2010
@@ -41,6 +41,7 @@
     u8 flags;       /** CPU flags. */
     addr_t stack;    /** Address of the initial CPU stack. */
     process_t *proc; /** Currently running process. */
+    process_t *idle; /** Run this process if no other is ready. */
 }
 PACKED cpu_t;

@@ -75,5 +76,8 @@
 /** Array of known CPU's on the system. */
 extern cpu_t cpus[SMP_MAX];

+/** Number of CPU's on the system in total. */
+extern uint cpus_total;
+
 #endif /* __KERNEL_SMP_H */


Other related posts:

  • » [freenos] r405 committed - Added cpus_total as externally visible in kernel/smp.h - freenos