Loongson 2F processor provides a register for software to scale the frequency.For producing lower power consumption of Loongson computer,this paper uses CPUFreq driver framework in Linux kernel,writes driver code of CPUFreq for Loongson 2F processor,and realizes the dynamic frequency scaling of 2F processor.An experiment to measure the power saving and performance of CPUFreq is done.Experimental results show that OnDemand adjusting strategy of CPUFreq provides better synthesized effect.