Commit 5df66fc6 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

cobalt/intr: Fix cpumask argument type of xnintr_affinity



Passing a potentially large mask by value was a bad idea of I-pipe.
Dovetail uses the kernel API, and that does it right. So adjust our
internal abstraction - which is unused so far anyway.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent c291af31
......@@ -125,7 +125,7 @@ void xnintr_enable(struct xnintr *intr);
void xnintr_disable(struct xnintr *intr);
void xnintr_affinity(struct xnintr *intr,
cpumask_t cpumask);
const cpumask_t *cpumask);
#ifdef CONFIG_XENO_OPT_STATS_IRQS
......
......@@ -118,12 +118,12 @@ void xnintr_disable(struct xnintr *intr)
}
EXPORT_SYMBOL_GPL(xnintr_disable);
void xnintr_affinity(struct xnintr *intr, cpumask_t cpumask)
void xnintr_affinity(struct xnintr *intr, const cpumask_t *cpumask)
{
int ret;
secondary_mode_only();
ret = irq_set_affinity_hint(intr->irq, &cpumask);
ret = irq_set_affinity_hint(intr->irq, cpumask);
WARN_ON_ONCE(ret);
}
......
......@@ -992,11 +992,11 @@ EXPORT_SYMBOL_GPL(xnintr_disable);
*
* @coretags{secondary-only}
*/
void xnintr_affinity(struct xnintr *intr, cpumask_t cpumask)
void xnintr_affinity(struct xnintr *intr, const cpumask_t *cpumask)
{
secondary_mode_only();
#ifdef CONFIG_SMP
ipipe_set_irq_affinity(intr->irq, cpumask);
ipipe_set_irq_affinity(intr->irq, *cpumask);
#endif
}
EXPORT_SYMBOL_GPL(xnintr_affinity);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment