installed new cpu and the computer boots up fine everything works how it should but when i try to restart the computer it starts to restart how it should turns to a black screen and will not fully restart i have to press the button to turn it off
Depending on the upgrade, a Windows reinstall would probably help more than you would think. If it was a drastic upgrade or swap, there is a good chance there are inconsistencies with the install and your new processor. I've swapped processors many times and sometimes it works fine, sometimes it doesn't, and the times it doesn't, I get problems similar to what you're experiencing along with bluescreens or other odd things. At the very least, do a repair install of Windows and see if that settles it down.
This is the technique for looking for software that is not compatible wiht your new CPU: http://support.microsoft.com/kb/929135 If clean boot restarts OK then add services back in until you find the one that caused the problem.
This thread also suggested "Win7 keeps event logs on boot, sleep, wakeup. You might get some hints from there.
Control Panel\All Control Panel Items\Performance Information and Tools\Advanced Tools