When I use my Windows 10 laptop while plugged in, my CPU continuously runs at 4GHz, even when idle, causing the laptop to get hot and the fans to ramp up, but on battery power, the CPU's clock speed is regulated fine and it doesn't run at 4GHz continuous and overheat.
How can I get my CPU to run properly while charging?
I have tried editing power usage options (while plugged in) by left-clicking the battery icon, and I have set power plan to balanced.