Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (2 months ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

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

    r31574 r31859  
    246246        }
    247247
     248        /*
     249         * Fixup HFSCR:TM based on CPU features. The bit is set by our
     250         * early asm init because at that point we haven't updated our
     251         * CPU features from firmware and device-tree. Here we have,
     252         * so let's do it.
     253         */
     254        if (cpu_has_feature(CPU_FTR_HVMODE) && !cpu_has_feature(CPU_FTR_TM_COMP))
     255                mtspr(SPRN_HFSCR, mfspr(SPRN_HFSCR) & ~HFSCR_TM);
     256
    248257        /* Set IR and DR in PACA MSR */
    249258        get_paca()->kernel_msr = MSR_KERNEL;
Note: See TracChangeset for help on using the changeset viewer.