Commit c809f081 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

irqwork: Move data struct to a types header

parent fbd0e71d
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -2,8 +2,9 @@
#ifndef _LINUX_IRQ_WORK_H
#define _LINUX_IRQ_WORK_H

#include <linux/smp_types.h>
#include <linux/irq_work_types.h>
#include <linux/rcuwait.h>
#include <linux/smp_types.h>

/*
 * An entry can be in one of four states:
@@ -14,12 +15,6 @@
 * busy      NULL, 2 -> {free, claimed} : callback in progress, can be claimed
 */

struct irq_work {
	struct __call_single_node node;
	void (*func)(struct irq_work *);
	struct rcuwait irqwait;
};

#define __IRQ_WORK_INIT(_func, _flags) (struct irq_work){	\
	.node = { .u_flags = (_flags), },			\
	.func = (_func),					\
+14 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_IRQ_WORK_TYPES_H
#define _LINUX_IRQ_WORK_TYPES_H

#include <linux/smp_types.h>
#include <linux/types.h>

struct irq_work {
	struct __call_single_node	node;
	void				(*func)(struct irq_work *);
	struct rcuwait			irqwait;
};

#endif