mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
Add a utility, proc_irq_set_smp_affinity(), to set the CPU affinity of a Linux host IRQ via the proc filesystem. Use smp_affinity_list instead of smp_affinity to avoid having to convert the single CPU to a bitmask. The helper will be used by the eventfd IRQ test to verify delivery of IRQs when the affinity is randomized/modified. Signed-off-by: Josh Hilke <[email protected]> [sean: make the utility self-contained, drop "list", massage changelog] Link: https://patch.msgid.link/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
12 lines
306 B
C
12 lines
306 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef SELFTEST_KVM_PROC_UTIL_H
|
|
#define SELFTEST_KVM_PROC_UTIL_H
|
|
|
|
#include <stdint.h>
|
|
|
|
unsigned int vfio_msix_to_host_irq(const char *vfio_device_bdf, int msix);
|
|
|
|
void proc_irq_set_smp_affinity(unsigned int irq, int cpu);
|
|
|
|
#endif /* SELFTEST_KVM_PROC_UTIL_H */
|