| To: | Keith Owens <kaos@xxxxxxx> |
|---|---|
| Subject: | Re: [patch] fix 'ps' command in ia64 2.6 kdb |
| From: | Martin Pool <mbp@xxxxxxxxx> |
| Date: | Tue, 12 Aug 2003 18:08:02 +1000 |
| Cc: | xavier.bru@xxxxxxxx, kdb@xxxxxxxxxxx |
| In-reply-to: | <4920.1060673928@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20030812072627.GE1121@xxxxxxxxxxxxxxxxxxx> <4920.1060673928@xxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | kdb-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.4i |
On 12 Aug 2003, Keith Owens <kaos@xxxxxxx> wrote: > On Tue, 12 Aug 2003 17:26:29 +1000, > Martin Pool <mbp@xxxxxxxxx> wrote: > >There doesn't seem to be any variable smp_num_cpus on ia64 2.6.0test2. > > num_online_cpus() By my reading that does not give what we want here. In a machine with eight CPUs and all are down but CPU7, then num_online_cpus() will return 1. In the light of the nonlinear/hotplug CPU work in 2.5, I think looping up to NR_CPUS and checking cpu_online really is the right way to do it. (But I know much less about it than other people.) -- Martin |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] fix 'ps' command in ia64 2.6 kdb, Martin Pool |
|---|---|
| Next by Date: | Re: [patch] fix 'ps' command in ia64 2.6 kdb, Keith Owens |
| Previous by Thread: | Re: [patch] fix 'ps' command in ia64 2.6 kdb, Keith Owens |
| Next by Thread: | Re: [patch] fix 'ps' command in ia64 2.6 kdb, Keith Owens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |