msm-4.14/include/linux/rq_stats.h
Kyle Yan c4a0f86655 soc: qcom: rq_stats: add snapshot of run queue stats driver
Add a snapshot of msm_rq_stats driver as of msm-4.4 commit
c605e110ab186049 (Merge "usb: gadget: composite: Return bcdUSB
 0x0310 for Superspeed and higher").

This driver is used to expose statistics to the irq balancer.

Change-Id: I723310d12616f61598b2815e5ed3024418966ecc
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-10-31 14:50:50 -07:00

32 lines
1022 B
C

/* Copyright (c) 2011,2013-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
struct rq_data {
unsigned int rq_avg;
unsigned long rq_poll_jiffies;
unsigned long def_timer_jiffies;
unsigned long rq_poll_last_jiffy;
unsigned long rq_poll_total_jiffies;
unsigned long def_timer_last_jiffy;
unsigned int hotplug_disabled;
int64_t def_start_time;
struct attribute_group *attr_group;
struct kobject *kobj;
struct work_struct def_timer_work;
int init;
};
extern spinlock_t rq_lock;
extern struct rq_data rq_info;
extern struct workqueue_struct *rq_wq;