diff for duplicates of <20100602161840.GI18327@aftab> diff --git a/a/1.txt b/N1/1.txt index 48156d3..99ba471 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -123,7 +123,7 @@ index 33eae20..898c2f4 100644 + * check whether the other slot has disabled the + * same index already + */ -+ if (index = amd_get_l3_disable_slot(l3, !slot)) ++ if (index == amd_get_l3_disable_slot(l3, !slot)) + return -EINVAL; + + /* do not allow writes outside of allowed bits */ @@ -164,7 +164,7 @@ index 33eae20..898c2f4 100644 - + err = amd_set_l3_disable_slot(this_leaf->l3, cpu, slot, val); + if (err) { -+ if (err = -EEXIST) ++ if (err == -EEXIST) + printk(KERN_WARNING "L3 disable slot %d in use!\n", + slot); + return err; @@ -183,7 +183,7 @@ index 33eae20..898c2f4 100644 #endif /* CONFIG_CPU_SUP_AMD */ @@ -518,7 +574,7 @@ __cpuinit cpuid4_cache_lookup_regs(int index, - if (boot_cpu_data.x86_vendor = X86_VENDOR_AMD) { + if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) { amd_cpuid4(index, &eax, &ebx, &ecx); - amd_check_l3_disable(index, this_leaf); + amd_check_l3_disable(this_leaf, index); diff --git a/a/content_digest b/N1/content_digest index 6fd4ffa..c7b2f52 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\020100601082305.GA10650@aftab\0" "From\0Borislav Petkov <bp@amd64.org>\0" "Subject\0[PATCH -v2] x86, cacheinfo: Carve out L3 cache slot accessors\0" - "Date\0Wed, 02 Jun 2010 16:18:40 +0000\0" + "Date\0Wed, 2 Jun 2010 18:18:40 +0200\0" "To\0Thomas Gleixner <tglx@linutronix.de>" Ingo Molnar <mingo@redhat.com> " H. Peter Anvin <hpa@zytor.com>\0" @@ -138,7 +138,7 @@ "+\t * check whether the other slot has disabled the\n" "+\t * same index already\n" "+\t */\n" - "+\tif (index = amd_get_l3_disable_slot(l3, !slot))\n" + "+\tif (index == amd_get_l3_disable_slot(l3, !slot))\n" "+\t\treturn -EINVAL;\n" "+\n" "+\t/* do not allow writes outside of allowed bits */\n" @@ -179,7 +179,7 @@ "-\n" "+\terr = amd_set_l3_disable_slot(this_leaf->l3, cpu, slot, val);\n" "+\tif (err) {\n" - "+\t\tif (err = -EEXIST)\n" + "+\t\tif (err == -EEXIST)\n" "+\t\t\tprintk(KERN_WARNING \"L3 disable slot %d in use!\\n\",\n" "+\t\t\t\t\t slot);\n" "+\t\treturn err;\n" @@ -198,7 +198,7 @@ " #endif /* CONFIG_CPU_SUP_AMD */\n" "@@ -518,7 +574,7 @@ __cpuinit cpuid4_cache_lookup_regs(int index,\n" " \n" - " \tif (boot_cpu_data.x86_vendor = X86_VENDOR_AMD) {\n" + " \tif (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) {\n" " \t\tamd_cpuid4(index, &eax, &ebx, &ecx);\n" "-\t\tamd_check_l3_disable(index, this_leaf);\n" "+\t\tamd_check_l3_disable(this_leaf, index);\n" @@ -215,4 +215,4 @@ "Operating Systems Research Center\n" Advanced Micro Devices, Inc. -1317c649b5936b7a51e3d8715002f4f4fdb90d765aee1e574b0ec69335e3db2c +66e4a52e7b82557ee542532828870297f82dca8a97b85a1ecf862f8364e7020a
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.