[cpuinfo] fix possible dividei-by-zero

Fixes coverity CID 1238515