avr32: Scale loops_per_jiffy when cpu frequency changes
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Thu, 23 Oct 2008 09:23:08 +0000 (11:23 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Thu, 23 Oct 2008 13:18:33 +0000 (15:18 +0200)
commite3f91ca48162c3eb70450314a4d09384fccb92fa
tree07da27300068cb64fcc7e79bcdb502359b668ff7
parent6090065663ba5daab82d116d3040dc924e8cf79f
avr32: Scale loops_per_jiffy when cpu frequency changes

The loops_per_jiffy variable isn't updated when cpufreq changes the CPU
frequency. This could cause udelay() and friends to produce wrong
delays.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
arch/avr32/mach-at32ap/cpufreq.c