Use getcpuid from spl for kernel context.