1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _LINUX_TIMER_TYPES_H |
3 | #define _LINUX_TIMER_TYPES_H |
4 | |
5 | #include <linux/lockdep_types.h> |
6 | #include <linux/types.h> |
7 | |
8 | struct timer_list { |
9 | /* |
10 | * All fields that change during normal runtime grouped to the |
11 | * same cacheline |
12 | */ |
13 | struct hlist_node entry; |
14 | unsigned long expires; |
15 | void (*function)(struct timer_list *); |
16 | u32 flags; |
17 | |
18 | #ifdef CONFIG_LOCKDEP |
19 | struct lockdep_map lockdep_map; |
20 | #endif |
21 | }; |
22 | |
23 | #endif /* _LINUX_TIMER_TYPES_H */ |
24 | |