Due to my test, when the cpu goes to a high frequency, the temperature goes high quickly. When the temperature reach the threshold, the frequency will be limited to a low level. It is not the kernel make the temperature go high, it the cpu hardware it self, its internal resistance, inductance...