]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/powerpc/kernel/asm-offsets.c
powernv/cpuidle: Redesign idle states management
[mirror_ubuntu-zesty-kernel.git] / arch / powerpc / kernel / asm-offsets.c
index c161ef3f28a1c3d417c6bee15e5b76024e43569f..bbd27fe0c0399ed02dc4c0fbda521c4d38b4a9b3 100644 (file)
@@ -726,5 +726,14 @@ int main(void)
                                        arch.timing_last_enter.tv32.tbl));
 #endif
 
+#ifdef CONFIG_PPC_POWERNV
+       DEFINE(PACA_CORE_IDLE_STATE_PTR,
+                       offsetof(struct paca_struct, core_idle_state_ptr));
+       DEFINE(PACA_THREAD_IDLE_STATE,
+                       offsetof(struct paca_struct, thread_idle_state));
+       DEFINE(PACA_THREAD_MASK,
+                       offsetof(struct paca_struct, thread_mask));
+#endif
+
        return 0;
 }