Loading drivers/cpufreq/cpu-boost.c +13 −4 Original line number Diff line number Diff line /* * Copyright (c) 2013, The Linux Foundation. All rights reserved. * Copyright (c) 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 Loading @@ -17,6 +17,7 @@ #include <linux/init.h> #include <linux/notifier.h> #include <linux/cpufreq.h> #include <linux/cpu.h> #include <linux/sched.h> #include <linux/jiffies.h> #include <linux/kthread.h> Loading Loading @@ -164,9 +165,15 @@ static int boost_mig_sync_thread(void *data) s->boost_min = src_policy.cur; /* Force policy re-evaluation to trigger adjust notifier. */ get_online_cpus(); if (cpu_online(dest_cpu)) { cpufreq_update_policy(dest_cpu); queue_delayed_work_on(s->cpu, cpu_boost_wq, queue_delayed_work_on(dest_cpu, cpu_boost_wq, &s->boost_rem, msecs_to_jiffies(boost_ms)); } else { s->boost_min = 0; } put_online_cpus(); } return 0; Loading Loading @@ -205,6 +212,7 @@ static void do_input_boost(struct work_struct *work) struct cpu_sync *i_sync_info; struct cpufreq_policy policy; get_online_cpus(); for_each_online_cpu(i) { i_sync_info = &per_cpu(sync_info, i); Loading @@ -221,6 +229,7 @@ static void do_input_boost(struct work_struct *work) &i_sync_info->input_boost_rem, msecs_to_jiffies(input_boost_ms)); } put_online_cpus(); } static void cpuboost_input_event(struct input_handle *handle, Loading Loading
drivers/cpufreq/cpu-boost.c +13 −4 Original line number Diff line number Diff line /* * Copyright (c) 2013, The Linux Foundation. All rights reserved. * Copyright (c) 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 Loading @@ -17,6 +17,7 @@ #include <linux/init.h> #include <linux/notifier.h> #include <linux/cpufreq.h> #include <linux/cpu.h> #include <linux/sched.h> #include <linux/jiffies.h> #include <linux/kthread.h> Loading Loading @@ -164,9 +165,15 @@ static int boost_mig_sync_thread(void *data) s->boost_min = src_policy.cur; /* Force policy re-evaluation to trigger adjust notifier. */ get_online_cpus(); if (cpu_online(dest_cpu)) { cpufreq_update_policy(dest_cpu); queue_delayed_work_on(s->cpu, cpu_boost_wq, queue_delayed_work_on(dest_cpu, cpu_boost_wq, &s->boost_rem, msecs_to_jiffies(boost_ms)); } else { s->boost_min = 0; } put_online_cpus(); } return 0; Loading Loading @@ -205,6 +212,7 @@ static void do_input_boost(struct work_struct *work) struct cpu_sync *i_sync_info; struct cpufreq_policy policy; get_online_cpus(); for_each_online_cpu(i) { i_sync_info = &per_cpu(sync_info, i); Loading @@ -221,6 +229,7 @@ static void do_input_boost(struct work_struct *work) &i_sync_info->input_boost_rem, msecs_to_jiffies(input_boost_ms)); } put_online_cpus(); } static void cpuboost_input_event(struct input_handle *handle, Loading