summaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/pal.h
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2006-02-27 16:16:22 -0800
committerTony Luck <tony.luck@intel.com>2006-03-24 13:15:23 -0800
commit4129a953ad4db379d8e07b0dd2157998653a1325 (patch)
tree84c6d310953044caa420410165adcd0dfb2ac55f /include/asm-ia64/pal.h
parent4d357acadd7a5e60767c748ed7807e11c4387bdf (diff)
downloadop-kernel-dev-4129a953ad4db379d8e07b0dd2157998653a1325.zip
op-kernel-dev-4129a953ad4db379d8e07b0dd2157998653a1325.tar.gz
[IA64] New IA64 core/thread detection patch
IPF SDM 2.2 changes definition of PAL_LOGICAL_TO_PHYSICAL to add proc_number=-1 to get core/thread mapping info on the running processer. Based on this change, we had better to update existing core/thread detection in IA64 kernel correspondingly. The attached patch implements this change. It simplifies detection code and eliminates potential race condition. It also runs a bit faster and has better scalability especially when cores and threads number grows up in one package. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64/pal.h')
-rw-r--r--include/asm-ia64/pal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/asm-ia64/pal.h b/include/asm-ia64/pal.h
index 7708ec6..4e7e6f2 100644
--- a/include/asm-ia64/pal.h
+++ b/include/asm-ia64/pal.h
@@ -1640,8 +1640,7 @@ ia64_pal_logical_to_phys(u64 proc_number, pal_logical_to_physical_t *mapping)
if (iprv.status == PAL_STATUS_SUCCESS)
{
- if (proc_number == 0)
- mapping->overview.overview_data = iprv.v0;
+ mapping->overview.overview_data = iprv.v0;
mapping->ppli1.ppli1_data = iprv.v1;
mapping->ppli2.ppli2_data = iprv.v2;
}
OpenPOWER on IntegriCloud