summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorBrian Stegmiller <bjs@us.ibm.com>2015-11-15 10:52:28 -0600
committerPatrick Williams <iawillia@us.ibm.com>2015-12-11 15:30:29 -0600
commitcb1f5614326054b025774dae1a37ad5bdf07902d (patch)
tree4b5ef74fd7aac1b7bba91da711da867ccb870920 /src/lib
parentbedb0a1a1818ebe6d683028926ccaec14fdb9f8d (diff)
downloadtalos-hostboot-cb1f5614326054b025774dae1a37ad5bdf07902d.tar.gz
talos-hostboot-cb1f5614326054b025774dae1a37ad5bdf07902d.zip
HOSTBOOT: Support fused cores
Change-Id: I2ad133be733ee9e41590b3b8bd60bd6abe69d1a9 RTC: 126786 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22054 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/syscall_misc.C13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/syscall_misc.C b/src/lib/syscall_misc.C
index 285fb6091..22ead7a9a 100644
--- a/src/lib/syscall_misc.C
+++ b/src/lib/syscall_misc.C
@@ -91,14 +91,16 @@ uint64_t cpu_spr_value(CpuSprNames spr)
_syscall1(MISC_CPUSPRVALUE, reinterpret_cast<void*>(spr)));
}
-int cpu_master_winkle()
+int cpu_master_winkle(bool i_fusedCores)
{
task_affinity_pin();
task_affinity_migrate_to_master();
int rc = reinterpret_cast<int64_t>(
- _syscall1(MISC_CPUWINKLE,
- reinterpret_cast<void*>(WINKLE_SCOPE_MASTER)));
+ _syscall2(MISC_CPUWINKLE,
+ reinterpret_cast<void*>(WINKLE_SCOPE_MASTER),
+ reinterpret_cast<void*>(i_fusedCores) ));
+
task_affinity_unpin();
@@ -111,8 +113,9 @@ int cpu_all_winkle()
task_affinity_migrate_to_master();
int rc = reinterpret_cast<int64_t>(
- _syscall1(MISC_CPUWINKLE,
- reinterpret_cast<void*>(WINKLE_SCOPE_ALL)));
+ _syscall2(MISC_CPUWINKLE,
+ reinterpret_cast<void*>(WINKLE_SCOPE_ALL),
+ reinterpret_cast<void*>(false) ));
task_affinity_unpin();
OpenPOWER on IntegriCloud