I used to have this on my Mac a long while back. Out of warrantee and I didn't want to pay, so I never got it fully diagnosed/repaired. Searching suggested it was a bad transistor, power supply or possibly motherboard. The only thing that worked for me (admittedly a bad solution) was to change the processor performance setting to 'reduced'.