CPU Frequency locks to ~1000Mhz while building kernel

I am currently patching multiple kernels with a lower brightness for my Framework 16. And I noticed a strange thing:

If I build any kernel with any number of threads my CPU locks to 1000Mhz, although it could actually clock way higher. My processor is the Ryzen 7840HS, which normally clocks at ~4Ghz.

Where could I start my troubleshooting? I would like to build my kernels with the maximum frequency :confused:

EDIT:
In this screenshot you can see it’s not a problem with temperature, as the CPU sits at ~50°C. I played a game until the sharp drop of the frequency. After that it’s been only building the Kernel with 8 threads.

My guess would be that something might be limiting the power to your CPU.

I would start by looking at things like powerprofilesctl, cpupower frequency-info. Also, check if there is something in your BIOS settings related to power supply to your CPU.

This may be worth checking as well:

Thanks for your input!

Weirdly enough, after a restart, it chugs away just fine…

I’ll report back, once it happens again tho. I don’t have any BIOS settings related to CPU power. Right now the CPU uses 20-30W depending on the power plan.
If it happens again, I’ll include information about powerprofilesctl and the cpupower frequency.

I checked your link, and my system uses the AMD P-State EPP driver.