From 8e5d7631489757b0b5bea1b129aed8c1b5712130 Mon Sep 17 00:00:00 2001 From: Alex Frid Date: Fri, 20 Aug 2010 16:22:55 -0700 Subject: [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 Reviewed-by: Yu-Huan Hsu --- arch/arm/mach-tegra/cpufreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch') 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 #include +#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__); -- cgit v1.2.3