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

In case of an error, just panic, to make sure we always get a val >= 1.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>