xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 MediaTek Inc. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _MET_STRUCT_H_ |
| 7 | #define _MET_STRUCT_H_ |
| 8 | |
| 9 | #include <linux/hrtimer.h> |
| 10 | |
| 11 | struct met_cpu_struct { |
| 12 | struct hrtimer hrtimer; |
| 13 | struct delayed_work dwork; |
| 14 | /* struct kmem_cache *cachep; */ |
| 15 | /* struct list_head sample_head; */ |
| 16 | /* spinlock_t list_lock; */ |
| 17 | /* struct mutex list_sync_lock; */ |
| 18 | int work_enabled; |
| 19 | int cpu; |
| 20 | int hrtimer_online_check; |
| 21 | /* char name[16]; */ |
| 22 | }; |
| 23 | |
| 24 | DECLARE_PER_CPU(struct met_cpu_struct, met_cpu); |
| 25 | |
| 26 | #endif /* _MET_STRUCT_H_ */ |