How to control CPU frequency

Follow the steps:

sudo apt-get install rcconf 
sudo rcconf

Search for

ondemand

option and disable(un-check the check-box) it using space-bar.