mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
d4e18f2c32
Register for suspend and resume notifications from kernel. This should be done as part of core_initcall so as to receive notification as close as possible to the actual event. Add hotplug_disable attribute to rq-stats node. Set/clear this attribute based on the suspend/resume events. CRS-fixed: 452456 Bug: 9022807 Change-Id: I76fee349b57f47df40785e9c2503e2e1cc6e064e Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org> Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
32 lines
1 KiB
C
32 lines
1 KiB
C
/* Copyright (c) 2011, 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 def_interval;
|
|
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;
|