Mine started to do that awhile back, then the restarting increased in frequency. Turned out that the mother board had gone bad and needed to be replaced.
That's what happened to me. Had to replace motherboard.