]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/mm/pat.c
mtrr, mm, x86: enhance MTRR checks for KVA huge page mapping
[karo-tx-linux.git] / arch / x86 / mm / pat.c
index 35af6771a95ad6c126cca1f352b896998116876e..372ad422c2c3b1596f0bc35bca2eb55cf85b4a72 100644 (file)
@@ -267,9 +267,9 @@ static unsigned long pat_x_mtrr_type(u64 start, u64 end,
         * request is for WB.
         */
        if (req_type == _PAGE_CACHE_MODE_WB) {
-               u8 mtrr_type;
+               u8 mtrr_type, uniform;
 
-               mtrr_type = mtrr_type_lookup(start, end);
+               mtrr_type = mtrr_type_lookup(start, end, &uniform);
                if (mtrr_type != MTRR_TYPE_WRBACK)
                        return _PAGE_CACHE_MODE_UC_MINUS;