android_kernel_xiaomi_sm8350/include/linux/rq_stats.h
Jordan Crouse 1155af87e3 includes: Fix more headers to work with KERNEL_HEADER_TEST
Fix other headers to work when KERNEL_HEADER_TEST is enabled by adding
dependencies and advance struct prototypes where appropriate.

Change-Id: Ic0dedbad6804e5dca75b33b3d0ae9e3b89a51669
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-04-02 17:40:57 -06:00

27 lines
586 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2011,2013-2014,2019-2020, The Linux Foundation. All rights reserved.
*/
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/workqueue.h>
#ifdef CONFIG_QCOM_RUN_QUEUE_STATS
struct rq_data {
unsigned long def_timer_jiffies;
unsigned long def_timer_last_jiffy;
int64_t def_start_time;
struct attribute_group *attr_group;
struct kobject *kobj;
struct work_struct def_timer_work;
int init;
};
extern struct rq_data rq_info;
extern struct workqueue_struct *rq_wq;
extern spinlock_t rq_lock;
#endif