Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (6 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/arch/powerpc/kernel/setup_64.c

    r28606 r31885  
    221221                mtspr(SPRN_LPCR, lpcr | LPCR_AIL_3);
    222222        }
     223
     224        /*
     225         * Fixup HFSCR:TM based on CPU features. The bit is set by our
     226         * early asm init because at that point we haven't updated our
     227         * CPU features from firmware and device-tree. Here we have,
     228         * so let's do it.
     229         */
     230        if (cpu_has_feature(CPU_FTR_HVMODE) && !cpu_has_feature(CPU_FTR_TM_COMP))
     231                mtspr(SPRN_HFSCR, mfspr(SPRN_HFSCR) & ~HFSCR_TM);
    223232}
    224233
Note: See TracChangeset for help on using the changeset viewer.