Automatically reboot OS X 10.7 after kernel panic?
Open the Energy Saver pane in System Preferences. There's an option to Restart automatically if the computer freezes, if you check that you should get the behaviour you desire.

Note that there are two tabs in Energy Saver—one for when you're on battery and one for when you're running from the power adapter; make sure you set it for each state you want.