+#define _cpu_to_lcpu(cpu) (&cpu_datap(cpu)->lcpu)
+#define _cpu_to_core(cpu) (_cpu_to_lcpu(cpu)->core)
+#define _cpu_to_package(cpu) (_cpu_to_core(cpu)->package)
+
+#define cpu_to_lcpu(cpu) ((cpu_datap(cpu) != NULL) ? _cpu_to_lcpu(cpu) : NULL)
+#define cpu_to_core(cpu) ((cpu_to_lcpu(cpu) != NULL) ? _cpu_to_lcpu(cpu)->core : NULL)
+#define cpu_to_die(cpu) ((cpu_to_lcpu(cpu) != NULL) ? _cpu_to_lcpu(cpu)->die : NULL)
+#define cpu_to_package(cpu) ((cpu_to_lcpu(cpu) != NULL) ? _cpu_to_lcpu(cpu)->package : NULL)