clocksource/drivers/time-armada-370-xp: Fix the clock reference
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 17 Aug 2016 10:21:33 +0000 (12:21 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Aug 2016 11:08:31 +0000 (13:08 +0200)
commit0e62fd836e4c2908cc1e32c68806529b4f859955
treef096e9344138d7c8431fecb815ed3bb27650c111
parent3684b03d8e9a889eda94ee74421959a9d55e5e19
clocksource/drivers/time-armada-370-xp: Fix the clock reference

While converting the init function to return an error, the wrong clock
was get. This leads to the wrong clock rate and slows down the kernel.
For example, it affects typical boot time:

 - without fix: over 1 minute
 - with    fix: 15 seconds

Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 12549e27c63c ("clocksource/drivers/time-armada-370-xp: Convert init function to return error")
Link: http://lkml.kernel.org/r/1471429296-9053-1-git-send-email-daniel.lezcano@linaro.org
[ Refined the changelog. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/clocksource/time-armada-370-xp.c