| To: | Bharata B Rao <bharata@xxxxxxxxxx> |
|---|---|
| Subject: | Re: Non disruptive dumps -- current work. |
| From: | "Matt D. Robinson" <yakker@xxxxxxxxxxx> |
| Date: | Mon, 17 Sep 2001 23:05:38 -0700 (PDT) |
| Cc: | "Matt D. Robinson" <yakker@xxxxxxxxxxxxxx>, <lkcd@xxxxxxxxxxx> |
| In-reply-to: | <20010918111345.A1247@in.ibm.com> |
| Sender: | owner-lkcd@xxxxxxxxxxx |
On Tue, 18 Sep 2001, Bharata B Rao wrote:
|>On Mon, Sep 17, 2001 at 04:44:56PM -0700, Matt D. Robinson wrote:
|>Will this fuction be called for each cpu ? If so won't you be going through
|>the loop of NR_IRQS for all cpus ? Can't the affinities of all irqs be changed
|>to that of dumping cpu at one go ? Something like this,
|>
|>{
|> .
|> .
|> int cpu = smp_processor_id();
|> for (i = 0; i < NR_IRQS; i++) {
|> if (irq_desc[i].handler == NULL)
|> continue;
|> irq_affinity[i] = 1UL << cpu;
|> if (irq_desc[i].handler->set_affinity != NULL)
|> irq_desc[i].handler->set_affinity(i, irq_affinity[i]);
|> }
|>}
This is fine ... it makes it a single call rather than
an smp_call_function() mechanism.
|>Regards,
|>Bharata.
Thanks for the heads-up, as always.
--Matt
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Non disruptive dumps -- current work., Bharata B Rao |
|---|---|
| Next by Date: | Re: Suggestion Box + SMP blues, Matt D. Robinson |
| Previous by Thread: | Re: Non disruptive dumps -- current work., Bharata B Rao |
| Next by Thread: | RE: Current snapshot, Schaal, Richard |
| Indexes: | [Date] [Thread] [Top] [All Lists] |