diff options
author | Alex Frid <afrid@nvidia.com> | 2010-08-20 16:22:55 -0700 |
---|---|---|
committer | Yu-Huan Hsu <yhsu@nvidia.com> | 2010-08-25 19:38:55 -0700 |
commit | 8e5d7631489757b0b5bea1b129aed8c1b5712130 (patch) | |
tree | e4b853c8b0d329a61ced240911b135053ff36ab3 /arch | |
parent | 6e73bfc1bdae482151b94386140c2f303aaabaad (diff) |
[ARM/tegra] RM: elevated cpufreq dfsd priority.
Elevated cpufreq dfsd priority from one step above default to one step
below NvOS IRQ priority.
Bug 721076
(cherry picked from commit 56a29c7e184bb98457385eea307ce664bf8ceacf)
Change-Id: I49c5a3df78d81a2511ef6e1109962464d93495f5
Reviewed-on: http://git-master/r/5570
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/cpufreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/cpufreq.c b/arch/arm/mach-tegra/cpufreq.c index 22f1634077c4..790b28150c42 100644 --- a/arch/arm/mach-tegra/cpufreq.c +++ b/arch/arm/mach-tegra/cpufreq.c @@ -47,6 +47,8 @@ #include <nvrm_power.h> #include <nvrm_power_private.h> +#define KTHREAD_IRQ_PRIO (MAX_RT_PRIO>>1) + static NvRmDeviceHandle rm_cpufreq = NULL; static struct task_struct *cpufreq_dfsd = NULL; static struct clk *clk_cpu = NULL; @@ -246,7 +248,7 @@ static int tegra_cpufreq_init_once(void) goto clean; } - sp.sched_priority = DEFAULT_PRIO - 1; + sp.sched_priority = KTHREAD_IRQ_PRIO + 1; if (sched_setscheduler_nocheck(cpufreq_dfsd, SCHED_FIFO, &sp) < 0) pr_err("%s: unable to elevate DVFS daemon priority\n",__func__); |