]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm/kernel/smp_twd.c
Merge branch 'renesas/timer' into next/timer
[karo-tx-linux.git] / arch / arm / kernel / smp_twd.c
index a622e7a8b121bf9759fe0331f51f82aa88ef4311..fef42b21cecba517e67e8ed74ef8c88d3cfd2afd 100644 (file)
@@ -132,7 +132,7 @@ static struct notifier_block twd_cpufreq_nb = {
 
 static int twd_cpufreq_init(void)
 {
-       if (!IS_ERR(twd_clk))
+       if (twd_evt && *__this_cpu_ptr(twd_evt) && !IS_ERR(twd_clk))
                return cpufreq_register_notifier(&twd_cpufreq_nb,
                        CPUFREQ_TRANSITION_NOTIFIER);