Amar Singhal | f49d99b | 2011-08-22 19:02:04 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | struct rq_data { |
| 15 | unsigned int rq_avg; |
| 16 | unsigned long rq_poll_jiffies; |
| 17 | unsigned long def_timer_jiffies; |
| 18 | unsigned long rq_poll_last_jiffy; |
| 19 | unsigned long rq_poll_total_jiffies; |
| 20 | unsigned long def_timer_last_jiffy; |
| 21 | unsigned int def_interval; |
| 22 | int64_t def_start_time; |
| 23 | struct attribute_group *attr_group; |
| 24 | struct kobject *kobj; |
| 25 | struct work_struct def_timer_work; |
| 26 | int init; |
| 27 | }; |
| 28 | |
| 29 | extern spinlock_t rq_lock; |
| 30 | extern struct rq_data rq_info; |
| 31 | extern struct workqueue_struct *rq_wq; |