Do not assume it has 4 cores.

Get that information from the system.

Signed-off-by: Thiago Farina <tfarina@chromium.org>