I am not sure why you are referring to Linux (macos kernel is XNU), but the firmware of the chip is in charge of controlling the CPU clockspeed and the only reason it is hitting this limiter is because the CPU does not have correct cooling, nothing to do with the OS.