The Power Profiles Daemon software under the UPower project has released version 0.21 which now is automatically battery-state aware for adjusting the CPU power/performance behavior depending upon whether your Linux laptop is connected to AC or battery power.