Fixed random reboots problem

Is not sure but that is working on some devices as fas as I know, included my Huawei u8800pro. Just please give a try, if is not working just rever the commit :)