]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - arch/powerpc/kernel/prom.c
powerpc/powernv: Enable TM without suspend if possible
[mirror_ubuntu-hirsute-kernel.git] / arch / powerpc / kernel / prom.c
index d9bd6555f980de61b2e659da923039babb7399a4..101822be525a4c597e6d2d88472c6b4af5a04d88 100644 (file)
@@ -47,6 +47,7 @@
 #include <asm/mmu.h>
 #include <asm/paca.h>
 #include <asm/pgtable.h>
+#include <asm/powernv.h>
 #include <asm/iommu.h>
 #include <asm/btext.h>
 #include <asm/sections.h>
@@ -681,7 +682,10 @@ static void __init tm_init(void)
                cur_cpu_spec->cpu_user_features2 &=
                        ~(PPC_FEATURE2_HTM_NOSC | PPC_FEATURE2_HTM);
                cur_cpu_spec->cpu_features &= ~CPU_FTR_TM;
+               return;
        }
+
+       pnv_tm_init();
 }
 #else
 static void tm_init(void) { }