cpus: let it always return an unsigned int and bail out on error