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 <>
Tested-by: Ralph Sennhauser <>
Signed-off-by: Gregory CLEMENT <>
Signed-off-by: Daniel Lezcano <>
Cc: Linus Torvalds <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Fixes: 12549e27c63c ("clocksource/drivers/time-armada-370-xp: Convert init function to return error")
[ Refined the changelog. ]
Signed-off-by: Ingo Molnar <>
1 file changed