mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
scst/include/backport.h: Backport irq_set_affinity_notifier()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8177 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -498,6 +498,20 @@ ssize_t kernel_write(struct file *file, const void *buf, size_t count,
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* <linux/interrupt.h> */
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(RHEL_MAJOR)
|
||||
/*
|
||||
* See also commit cd7eab44e994 ("genirq: Add IRQ affinity notifiers";
|
||||
* v2.6.39).
|
||||
*/
|
||||
struct irq_affinity_notify;
|
||||
static inline int
|
||||
irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* <linux/iocontext.h> */
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) || \
|
||||
|
||||
Reference in New Issue
Block a user