patch-2.4.13 linux/arch/arm/mach-sa1100/generic.c

Next file: linux/arch/arm/mach-sa1100/graphicsclient.c
Previous file: linux/arch/arm/mach-sa1100/dma-sa1111.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/arch/arm/mach-sa1100/generic.c linux/arch/arm/mach-sa1100/generic.c
@@ -69,7 +69,7 @@
  * Validate the speed in khz.  If we can't generate the precise
  * frequency requested, round it down (to be on the safe side).
  */
-unsigned int cpufreq_validatespeed(unsigned int khz)
+unsigned int sa1100_validatespeed(unsigned int khz)
 {
 	int i;
 
@@ -87,7 +87,7 @@
  * above, we can match for an exact frequency.  If we don't find
  * an exact match, we will to set the lowest frequency to be safe.
  */
-void cpufreq_setspeed(unsigned int khz)
+void sa1100_setspeed(unsigned int khz)
 {
 	int i;
 
@@ -103,6 +103,7 @@
 static int __init sa1100_init_clock(void)
 {
 	cpufreq_init(get_cclk_frequency() * 100);
+	cpufreq_setfunctions(sa1100_validatespeed, sa1100_setspeed);
 	return 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)