From: Tsutomu OWA <tsutomu.owa@toshiba.co.jp>
To: linux-kernel@vger.kernel.org
Cc: linuxppc-dev@ozlabs.org, mingo@elte.hu, tglx@linutronix.de
Subject: [RFC PATCH 4/4] powerpc 2.6.16-rt29: to fix network driver (workaround)
Date: Fri, 11 Aug 2006 11:04:35 +0900 [thread overview]
Message-ID: <yyik65ghvt8.wl@forest.swc.toshiba.co.jp> (raw)
To make network driver available for rt29 (actually rt21 and later).
When doing "ping -f", the network driver seems to hang without this
workaround for rt version 29.
-- owa
# I suppose this should be fixed in other way in future but for now...
--- rt29/kernel/irq/manage.c 2006-07-10 09:01:21.000000000 +0900
+++ rt-powerpc/kernel/irq/manage.c 2006-07-21 20:17:50.000000000 +0900
@@ -723,15 +723,24 @@ static int do_irqd(void * __desc)
set_current_state(TASK_INTERRUPTIBLE);
do_hardirq(desc);
cond_resched_all();
+#ifndef CONFIG_PPC_PMAC64 /* work around: to revert to patch-2.6.16-rt20 version */
local_irq_disable();
+#endif /* !CONFIG_PPC_PMAC64 */
__do_softirq();
local_irq_enable();
#ifdef CONFIG_SMP
/*
* Did IRQ affinities change?
*/
+#ifdef CONFIG_PPC_PMAC64 /* work around; revert to patch-2.6.16-rt20 version */
+ if (!cpu_isset(smp_processor_id(), irq_affinity[irq])) {
+ mask = cpumask_of_cpu(any_online_cpu(irq_affinity[irq]));
+ set_cpus_allowed(current, mask);
+ }
+#else
if (!cpus_equal(current->cpus_allowed, irq_affinity[irq]))
set_cpus_allowed(current, irq_affinity[irq]);
+#endif /* CONFIG_PPC_PMAC64 */
#endif
schedule();
}
reply other threads:[~2006-08-11 4:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yyik65ghvt8.wl@forest.swc.toshiba.co.jp \
--to=tsutomu.owa@toshiba.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox