diff options
author | jl139090 <none@none> | 2006-04-08 10:25:15 -0700 |
---|---|---|
committer | jl139090 <none@none> | 2006-04-08 10:25:15 -0700 |
commit | 25cf1a301a396c38e8adf52c15f537b80d2483f7 (patch) | |
tree | a76776c2cfbbe43c1ae252223c7ccfa5df15c21c /usr/src/uts/common/os/cpu.c | |
parent | 918fadfadf0c235e6c65ca652caab042b6f05976 (diff) | |
download | illumos-gate-25cf1a301a396c38e8adf52c15f537b80d2483f7.tar.gz |
PSARC 2004/750 Solaris for OPL
6379529 Solaris for OPL Project
--HG--
rename : usr/src/cmd/sckmd/sparc/sun4u/sckm.sh => deleted_files/usr/src/cmd/sckmd/sparc/sun4u/sckm.sh
Diffstat (limited to 'usr/src/uts/common/os/cpu.c')
-rw-r--r-- | usr/src/uts/common/os/cpu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/cpu.c b/usr/src/uts/common/os/cpu.c index ea0f219b9e..cfb190b1c5 100644 --- a/usr/src/uts/common/os/cpu.c +++ b/usr/src/uts/common/os/cpu.c @@ -2593,8 +2593,13 @@ cpuset_find(cpuset_t *s) /* * Find a cpu in the cpuset */ - for (i = 0; (i < CPUSET_WORDS && cpu == (uint_t)-1); i++) + for (i = 0; i < CPUSET_WORDS; i++) { cpu = (uint_t)(lowbit(s->cpub[i]) - 1); + if (cpu != (uint_t)-1) { + cpu += i * BT_NBIPUL; + break; + } + } return (cpu); } |