Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Split out irqflags_types.h

We're working on only pulling in type definitions to sched.h whenever
possible.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+24 -14
+1 -13
include/linux/irqflags.h
··· 12 12 #ifndef _LINUX_TRACE_IRQFLAGS_H 13 13 #define _LINUX_TRACE_IRQFLAGS_H 14 14 15 + #include <linux/irqflags_types.h> 15 16 #include <linux/typecheck.h> 16 17 #include <linux/cleanup.h> 17 18 #include <asm/irqflags.h> ··· 34 33 #endif 35 34 36 35 #ifdef CONFIG_TRACE_IRQFLAGS 37 - 38 - /* Per-task IRQ trace events information. */ 39 - struct irqtrace_events { 40 - unsigned int irq_events; 41 - unsigned long hardirq_enable_ip; 42 - unsigned long hardirq_disable_ip; 43 - unsigned int hardirq_enable_event; 44 - unsigned int hardirq_disable_event; 45 - unsigned long softirq_disable_ip; 46 - unsigned long softirq_enable_ip; 47 - unsigned int softirq_disable_event; 48 - unsigned int softirq_enable_event; 49 - }; 50 36 51 37 DECLARE_PER_CPU(int, hardirqs_enabled); 52 38 DECLARE_PER_CPU(int, hardirq_context);
+22
include/linux/irqflags_types.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef _LINUX_IRQFLAGS_TYPES_H 3 + #define _LINUX_IRQFLAGS_TYPES_H 4 + 5 + #ifdef CONFIG_TRACE_IRQFLAGS 6 + 7 + /* Per-task IRQ trace events information. */ 8 + struct irqtrace_events { 9 + unsigned int irq_events; 10 + unsigned long hardirq_enable_ip; 11 + unsigned long hardirq_disable_ip; 12 + unsigned int hardirq_enable_event; 13 + unsigned int hardirq_disable_event; 14 + unsigned long softirq_disable_ip; 15 + unsigned long softirq_enable_ip; 16 + unsigned int softirq_disable_event; 17 + unsigned int softirq_enable_event; 18 + }; 19 + 20 + #endif 21 + 22 + #endif /* _LINUX_IRQFLAGS_TYPES_H */
+1 -1
include/linux/sched.h
··· 11 11 12 12 #include <asm/current.h> 13 13 14 + #include <linux/irqflags_types.h> 14 15 #include <linux/pid_types.h> 15 16 #include <linux/sem.h> 16 17 #include <linux/shm.h> ··· 19 18 #include <linux/mutex_types.h> 20 19 #include <linux/plist_types.h> 21 20 #include <linux/hrtimer_types.h> 22 - #include <linux/irqflags.h> 23 21 #include <linux/seccomp.h> 24 22 #include <linux/nodemask_types.h> 25 23 #include <linux/rcupdate.h>