mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "msm-perf: Removed game active status node"
This commit is contained in:
commit
1ca2f08101
1 changed files with 1 additions and 27 deletions
|
|
@ -106,7 +106,6 @@ static bool max_cap_cpus[NR_CPUS];
|
|||
static cpumask_var_t limit_mask_min;
|
||||
static cpumask_var_t limit_mask_max;
|
||||
|
||||
static atomic_t game_status;
|
||||
static atomic_t game_status_pid;
|
||||
|
||||
static bool ready_for_freq_updates;
|
||||
|
|
@ -884,8 +883,7 @@ void msm_perf_events_update(enum evt_update_t update_typ,
|
|||
if (update_typ != MSM_PERF_GFX)
|
||||
return;
|
||||
|
||||
if (!atomic_read(&game_status) ||
|
||||
(pid != atomic_read(&game_status_pid)))
|
||||
if (pid != atomic_read(&game_status_pid) || (timestamp == 0))
|
||||
return;
|
||||
|
||||
spin_lock_irqsave(&gfx_circ_buff_lock, flags);
|
||||
|
|
@ -903,30 +901,6 @@ void msm_perf_events_update(enum evt_update_t update_typ,
|
|||
}
|
||||
|
||||
|
||||
|
||||
static int set_game_start_event(const char *buf, const struct kernel_param *kp)
|
||||
{
|
||||
long usr_val = 0;
|
||||
int ret = strlen(buf);
|
||||
|
||||
kstrtol(buf, 0, &usr_val);
|
||||
atomic_set(&game_status, usr_val);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int get_game_start_event(char *buf, const struct kernel_param *kp)
|
||||
{
|
||||
long usr_val = atomic_read(&game_status);
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%ld\n", usr_val);
|
||||
}
|
||||
|
||||
static const struct kernel_param_ops param_ops_game_start_evt = {
|
||||
.set = set_game_start_event,
|
||||
.get = get_game_start_event,
|
||||
};
|
||||
module_param_cb(evnt_gplaf_status, ¶m_ops_game_start_evt, NULL, 0644);
|
||||
|
||||
static int set_game_start_pid(const char *buf, const struct kernel_param *kp)
|
||||
{
|
||||
long usr_val = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue