[Skiboot] [PATCH v12 08/23] core/cpu: Introduce DEBUG_SERIALIZE_CPU_JOBS
Gavin Shan
gwshan at linux.vnet.ibm.com
Fri Jun 10 15:03:37 AEST 2016
Currently, the PHB reset and PCI enumeration are done concurrently
on multiple CPU cores. The output messages are interleaved and not
readable enough. This adds a option to do the jobs in serialized
fashion for debugging purpose only. The serialized mode should be
always disabled in field.
Suggested-by: Stewart Smith <stewart at linux.vnet.ibm.com>
Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
---
core/cpu.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/core/cpu.c b/core/cpu.c
index 4ae5e66..b5a3614 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -89,6 +89,11 @@ struct cpu_job *__cpu_queue_job(struct cpu_thread *cpu,
{
struct cpu_job *job;
+#ifdef DEBUG_SERIALIZE_CPU_JOBS
+ if (cpu == NULL)
+ cpu = this_cpu();
+#endif
+
if (cpu && !cpu_is_available(cpu)) {
prerror("CPU: Tried to queue job on unavailable CPU 0x%04x\n",
cpu->pir);
--
2.1.0
More information about the Skiboot
mailing list