diff options
author | hawkes@sgi.com <hawkes@sgi.com> | 2006-03-27 13:18:17 -0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-03-27 13:47:44 -0800 |
commit | e6ef0fca2c61f7e773178be8c3833a709a47e022 (patch) | |
tree | 25ee67907b1bb580a5d43bd87b7df2401d67a77e /arch/ia64 | |
parent | ce9eed5a98efacb896551d3470d9d46826caaee5 (diff) | |
download | linux-3.10-e6ef0fca2c61f7e773178be8c3833a709a47e022.tar.gz linux-3.10-e6ef0fca2c61f7e773178be8c3833a709a47e022.tar.bz2 linux-3.10-e6ef0fca2c61f7e773178be8c3833a709a47e022.zip |
[IA64-SGI] sn_hwperf use of num_online_cpus()
Eliminate an unnecessary -- and flawed -- use of the expensive
num_online_cpus().
Signed-off-by: John Hawkes <hawkes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/sn/kernel/sn2/sn_hwperf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/sn/kernel/sn2/sn_hwperf.c b/arch/ia64/sn/kernel/sn2/sn_hwperf.c index 70db21f3df2..6ff34fc05c8 100644 --- a/arch/ia64/sn/kernel/sn2/sn_hwperf.c +++ b/arch/ia64/sn/kernel/sn2/sn_hwperf.c @@ -605,7 +605,7 @@ static int sn_hwperf_op_cpu(struct sn_hwperf_op_info *op_info) op_info->a->arg &= SN_HWPERF_ARG_OBJID_MASK; if (cpu != SN_HWPERF_ARG_ANY_CPU) { - if (cpu >= num_online_cpus() || !cpu_online(cpu)) { + if (cpu >= NR_CPUS || !cpu_online(cpu)) { r = -EINVAL; goto out; } |