summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/cpu.H
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-06-08 10:49:39 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-06-08 14:01:38 -0500
commit63657a69627ca1dbd10fb683a8096ab2e8e77f2b (patch)
treef5aa6875dfbdd887c52541c779ff275596ad8f6d /src/include/kernel/cpu.H
parent74b9b31c9ae811dd527d4eb328e9fa93327442ab (diff)
downloadblackbird-hostboot-63657a69627ca1dbd10fb683a8096ab2e8e77f2b.tar.gz
blackbird-hostboot-63657a69627ca1dbd10fb683a8096ab2e8e77f2b.zip
Create per-CPU mutex for XSCOM usage.
Change-Id: I76ad5c1d553d544b52910afd82e2716781ea13b9 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/140 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Diffstat (limited to 'src/include/kernel/cpu.H')
-rw-r--r--src/include/kernel/cpu.H4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/kernel/cpu.H b/src/include/kernel/cpu.H
index 0fb794989..87e769743 100644
--- a/src/include/kernel/cpu.H
+++ b/src/include/kernel/cpu.H
@@ -9,6 +9,7 @@
#include <kernel/types.h>
#include <arch/ppc.H>
#include <builtins.h>
+#include <sys/mutex.h>
// Thread ID support only, Power7 (4 threads).
#define KERNEL_MAX_SUPPORTED_CPUS (4 * 8 * 4) // Sockets, cores, threads.
@@ -33,6 +34,9 @@ struct cpu_t
void* scheduler_extra;
/** Pointer to the idle task for this CPU */
task_t* idle_task;
+
+ /** XSCOM mutex to serialize access per CPU */
+ mutex_t xscom_mutex;
};
/** @fn getCpuId
OpenPOWER on IntegriCloud