From: Xie XiuQi <xiexiuqi@huawei.com>
To: Thomas Gleixner <tglx@linutronix.de>, <hch@infradead.org>
Cc: <linux-kernel@vger.kernel.org>, <huawei.libin@huawei.com>,
<wangyijing@huawei.com>
Subject: Re: [PATCH] genirq: export __irq_set_affinity symbol
Date: Thu, 12 May 2016 19:42:05 +0800 [thread overview]
Message-ID: <57346C0D.8020706@huawei.com> (raw)
In-Reply-To: <alpine.DEB.2.11.1605120942020.3911@nanos>
On 2016/5/12 15:43, Thomas Gleixner wrote:
> On Thu, 12 May 2016, Xie XiuQi wrote:
>
>> __irq_set_affinity is declared in include/linux/interrupt.h, but not
>> been exported.
>>
>> We export it now, so we could use __irq_set_affinity, irq_set_affinity
>> and irq_force_affinity in kernel modules.
>
> Please show the code using the exports first. We don't export symbols w/o
> knowing the usecase.
The default affinity of the interrupts for all devices is always CPU0,
this may cause the latency on CPU0 is very high when some interrupt
occurs very frequently.
I want to migrate an interrupt to another cpu when the driver loading.
My code like this:
/* I want to bind irq_vector to cpu 3 */
...
cpumask_var_t mask;
cpumask_set_cpu(3, mask);
irq_set_affinity(irq_vector, mask);
...
build wanring:
WARNING: "__irq_set_affinity" [/root/drivers/dr.ko] undefined!
insmod error:
dr: Unknown symbol __irq_set_affinity (err 0)
Thanks,
Xie XiuQi
>
> Thanks,
>
> tglx
>
>
next prev parent reply other threads:[~2016-05-12 11:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-12 5:51 [PATCH] genirq: export __irq_set_affinity symbol Xie XiuQi
2016-05-12 7:28 ` Christoph Hellwig
2016-05-12 7:43 ` Thomas Gleixner
2016-05-12 11:42 ` Xie XiuQi [this message]
2016-05-14 15:29 ` Thomas Gleixner
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=57346C0D.8020706@huawei.com \
--to=xiexiuqi@huawei.com \
--cc=hch@infradead.org \
--cc=huawei.libin@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=wangyijing@huawei.com \
/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