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

update

File:
1 edited

Legend:

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

    r25370 r31885  
    212212                mtspr(SPRN_LPCR, lpcr | LPCR_AIL_3);
    213213        }
     214
     215        /*
     216         * Fixup HFSCR:TM based on CPU features. The bit is set by our
     217         * early asm init because at that point we haven't updated our
     218         * CPU features from firmware and device-tree. Here we have,
     219         * so let's do it.
     220         */
     221        if (cpu_has_feature(CPU_FTR_HVMODE) && !cpu_has_feature(CPU_FTR_TM_COMP))
     222                mtspr(SPRN_HFSCR, mfspr(SPRN_HFSCR) & ~HFSCR_TM);
    214223}
    215224
Note: See TracChangeset for help on using the changeset viewer.