blob: a74ff78b67635e1c401cb00cdc5284c529432721 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
2 * Copyright (C) 2018 MediaTek Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#ifndef _MET_STRUCT_H_
15#define _MET_STRUCT_H_
16
17#include <linux/hrtimer.h>
18
19struct met_cpu_struct {
20 struct hrtimer hrtimer;
21 struct delayed_work dwork;
22/* struct kmem_cache *cachep; */
23/* struct list_head sample_head; */
24/* spinlock_t list_lock; */
25/* struct mutex list_sync_lock; */
26 int work_enabled;
27 int cpu;
28 int hrtimer_online_check;
29/* char name[16]; */
30};
31
32DECLARE_PER_CPU(struct met_cpu_struct, met_cpu);
33
34#endif /* _MET_STRUCT_H_ */