fix cpu info bugs

Hi, the old code does not give right cpu info in inf_list.