25 Apr, 2016
3 commits
-
Cooling device is registered by ready callback. It's also invoked while
system resuming from sleep (Enabling non-boot cpus). Thus cooling device
may be multiple registered. Matchable unregistration is added to exit
callback to fix this issue.Signed-off-by: Jia Hongtao
Signed-off-by: Rafael J. Wysocki -
.exit callback (qoriq_cpufreq_cpu_exit()) is also used during suspend.
So __exit macro should be removed or the function will be discarded.Signed-off-by: Jia Hongtao
Acked-by: Viresh Kumar
Signed-off-by: Rafael J. Wysocki -
When THERMAL_OF is undefined the cooling device messages should not be
shown. -ENOSYS is returned from of_cpufreq_cooling_register() when
THERMAL_OF is undefined.Signed-off-by: Jia Hongtao
Acked-by: Viresh Kumar
Signed-off-by: Rafael J. Wysocki
10 Dec, 2015
1 commit
-
Register the qoriq cpufreq driver as a cooling device, based on the
thermal device tree framework. When temperature crosses the passive trip
point cpufreq is used to throttle CPUs.Signed-off-by: Jia Hongtao
Reviewed-by: Viresh Kumar
Signed-off-by: Rafael J. Wysocki
15 Jun, 2015
1 commit
-
Each time the CPU switches its frequency, the clock nodes in
DTS are walked through to find proper clock source. This is
very time-consuming, for example, it is up to 500+ us on T4240.
Besides, switching time varies from clock to clock.
To optimize this, each input clock of CPU is buffered, so that
it can be picked up instantly when needed.Since for each CPU each input clock is stored in a pointer
which takes 4 or 8 bytes memory and normally there are several
input clocks per CPU, that will not take much memory as well.Signed-off-by: Tang Yuantian
Acked-by: Viresh Kumar
Signed-off-by: Rafael J. Wysocki
11 Apr, 2015
1 commit
-
The qoriq-cpufreq driver contains a hack for powerpc to include
asm/smp.h on uniprocessor builds so it can get the hardware CPU
number. On ARM, it does not require this hack, but instead gets
a compile error:In file included from drivers/cpufreq/qoriq-cpufreq.c:24:0:
arch/arm/include/asm/smp.h:18:3: error: #error " included in non-SMP build"
arch/arm/include/asm/smp.h:21:0: warning: "raw_smp_processor_id" redefinedThis adds an #ifdef to mirror the one in its get_cpu_physical_id()
function.Signed-off-by: Arnd Bergmann
Fixes: 2f249358eedaf ("cpufreq: qoriq: rename the driver")
Cc: Tang Yuantian
Signed-off-by: Rafael J. Wysocki
19 Mar, 2015
1 commit
-
This driver works on all QorIQ platforms which include
ARM-based cores and PPC-based cores.
Rename it in order to represent better.Signed-off-by: Tang Yuantian
Acked-by: Viresh Kumar
Signed-off-by: Rafael J. Wysocki