diff for duplicates of <20140817173037.730576191@linux.com> diff --git a/a/1.txt b/N1/1.txt index 84c3d9b..1e9a359 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -120,7 +120,8 @@ Signed-off-by: Christoph Lameter <cl@linux.com> 10 files changed, 35 insertions(+), 35 deletions(-) Index: linux/arch/sparc/include/asm/cpudata_32.h -=================================--- linux.orig/arch/sparc/include/asm/cpudata_32.h +=================================================================== +--- linux.orig/arch/sparc/include/asm/cpudata_32.h +++ linux/arch/sparc/include/asm/cpudata_32.h @@ -26,6 +26,6 @@ typedef struct { @@ -131,7 +132,8 @@ Index: linux/arch/sparc/include/asm/cpudata_32.h #endif /* _SPARC_CPUDATA_H */ Index: linux/arch/sparc/include/asm/cpudata_64.h -=================================--- linux.orig/arch/sparc/include/asm/cpudata_64.h +=================================================================== +--- linux.orig/arch/sparc/include/asm/cpudata_64.h +++ linux/arch/sparc/include/asm/cpudata_64.h @@ -30,7 +30,7 @@ typedef struct { @@ -143,7 +145,8 @@ Index: linux/arch/sparc/include/asm/cpudata_64.h #endif /* !(__ASSEMBLY__) */ Index: linux/arch/sparc/kernel/kprobes.c -=================================--- linux.orig/arch/sparc/kernel/kprobes.c +=================================================================== +--- linux.orig/arch/sparc/kernel/kprobes.c +++ linux/arch/sparc/kernel/kprobes.c @@ -83,7 +83,7 @@ static void __kprobes save_previous_kpro @@ -173,7 +176,8 @@ Index: linux/arch/sparc/kernel/kprobes.c goto ss_probe; } Index: linux/arch/sparc/kernel/leon_smp.c -=================================--- linux.orig/arch/sparc/kernel/leon_smp.c +=================================================================== +--- linux.orig/arch/sparc/kernel/leon_smp.c +++ linux/arch/sparc/kernel/leon_smp.c @@ -343,7 +343,7 @@ static void leon_ipi_resched(int cpu) @@ -185,7 +189,8 @@ Index: linux/arch/sparc/kernel/leon_smp.c if (work->single) { work->single = 0; Index: linux/arch/sparc/kernel/nmi.c -=================================--- linux.orig/arch/sparc/kernel/nmi.c +=================================================================== +--- linux.orig/arch/sparc/kernel/nmi.c +++ linux/arch/sparc/kernel/nmi.c @@ -100,20 +100,20 @@ notrace __kprobes void perfctr_irq(int i pcr_ops->write_pcr(0, pcr_ops->pcr_nmi_disable); @@ -197,10 +202,10 @@ Index: linux/arch/sparc/kernel/nmi.c + __this_cpu_write(nmi_touch, 0); touched = 1; } -- if (!touched && __get_cpu_var(last_irq_sum) = sum) { -+ if (!touched && __this_cpu_read(last_irq_sum) = sum) { +- if (!touched && __get_cpu_var(last_irq_sum) == sum) { ++ if (!touched && __this_cpu_read(last_irq_sum) == sum) { __this_cpu_inc(alert_counter); - if (__this_cpu_read(alert_counter) = 30 * nmi_hz) + if (__this_cpu_read(alert_counter) == 30 * nmi_hz) die_nmi("BUG: NMI Watchdog detected LOCKUP", regs, panic_on_timeout); } else { @@ -241,7 +246,8 @@ Index: linux/arch/sparc/kernel/nmi.c pcr_ops->write_pcr(0, pcr_ops->pcr_nmi_disable); Index: linux/arch/sparc/kernel/pci_sun4v.c -=================================--- linux.orig/arch/sparc/kernel/pci_sun4v.c +=================================================================== +--- linux.orig/arch/sparc/kernel/pci_sun4v.c +++ linux/arch/sparc/kernel/pci_sun4v.c @@ -48,7 +48,7 @@ static int iommu_batch_initialized; /* Interrupts must be disabled. */ @@ -259,7 +265,7 @@ Index: linux/arch/sparc/kernel/pci_sun4v.c - struct iommu_batch *p = &__get_cpu_var(iommu_batch); + struct iommu_batch *p = this_cpu_ptr(&iommu_batch); - if (p->entry + p->npages = entry) + if (p->entry + p->npages == entry) return; @@ -106,7 +106,7 @@ static inline void iommu_batch_new_entry /* Interrupts must be disabled. */ @@ -280,7 +286,8 @@ Index: linux/arch/sparc/kernel/pci_sun4v.c BUG_ON(p->npages >= PGLIST_NENTS); Index: linux/arch/sparc/kernel/perf_event.c -=================================--- linux.orig/arch/sparc/kernel/perf_event.c +=================================================================== +--- linux.orig/arch/sparc/kernel/perf_event.c +++ linux/arch/sparc/kernel/perf_event.c @@ -1013,7 +1013,7 @@ static void update_pcrs_for_enable(struc @@ -398,7 +405,8 @@ Index: linux/arch/sparc/kernel/perf_event.c /* If the PMU has the TOE IRQ enable bits, we need to do a * dummy write to the %pcr to clear the overflow bits and thus Index: linux/arch/sparc/kernel/sun4d_smp.c -=================================--- linux.orig/arch/sparc/kernel/sun4d_smp.c +=================================================================== +--- linux.orig/arch/sparc/kernel/sun4d_smp.c +++ linux/arch/sparc/kernel/sun4d_smp.c @@ -204,7 +204,7 @@ static void __init smp4d_ipi_init(void) @@ -410,7 +418,8 @@ Index: linux/arch/sparc/kernel/sun4d_smp.c if (work->single) { work->single = 0; Index: linux/arch/sparc/kernel/time_64.c -=================================--- linux.orig/arch/sparc/kernel/time_64.c +=================================================================== +--- linux.orig/arch/sparc/kernel/time_64.c +++ linux/arch/sparc/kernel/time_64.c @@ -765,7 +765,7 @@ void setup_sparc64_timer(void) : /* no outputs */ @@ -422,7 +431,8 @@ Index: linux/arch/sparc/kernel/time_64.c memcpy(sevt, &sparc64_clockevent, sizeof(*sevt)); sevt->cpumask = cpumask_of(smp_processor_id()); Index: linux/arch/sparc/mm/tlb.c -=================================--- linux.orig/arch/sparc/mm/tlb.c +=================================================================== +--- linux.orig/arch/sparc/mm/tlb.c +++ linux/arch/sparc/mm/tlb.c @@ -52,14 +52,14 @@ out: diff --git a/a/content_digest b/N1/content_digest index 663ee66..5352653 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020140817173023.439660246@linux.com\0" "From\0Christoph Lameter <cl@linux.com>\0" "Subject\0[PATCH 31/35] [PATCH 31/36] sparc: Replace __get_cpu_var uses\0" - "Date\0Sun, 17 Aug 2014 17:30:54 +0000\0" + "Date\0Sun, 17 Aug 2014 12:30:54 -0500\0" "To\0Tejun Heo <tj@kernel.org>\0" "Cc\0akpm@linuxfoundation.org" rostedt@goodmis.org @@ -12,6 +12,7 @@ sparclinux@vger.kernel.org " David S. Miller <davem@davemloft.net>\0" "\00:1\0" + "fn\00031-sparc-Replace-__get_cpu_var-uses.patch\0" "b\0" "__get_cpu_var() is used for multiple purposes in the kernel source. One of\n" "them is address calculation via the form &__get_cpu_var(x). This calculates\n" @@ -135,7 +136,8 @@ " 10 files changed, 35 insertions(+), 35 deletions(-)\n" "\n" "Index: linux/arch/sparc/include/asm/cpudata_32.h\n" - "=================================--- linux.orig/arch/sparc/include/asm/cpudata_32.h\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/include/asm/cpudata_32.h\n" "+++ linux/arch/sparc/include/asm/cpudata_32.h\n" "@@ -26,6 +26,6 @@ typedef struct {\n" " \n" @@ -146,7 +148,8 @@ " \n" " #endif /* _SPARC_CPUDATA_H */\n" "Index: linux/arch/sparc/include/asm/cpudata_64.h\n" - "=================================--- linux.orig/arch/sparc/include/asm/cpudata_64.h\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/include/asm/cpudata_64.h\n" "+++ linux/arch/sparc/include/asm/cpudata_64.h\n" "@@ -30,7 +30,7 @@ typedef struct {\n" " \n" @@ -158,7 +161,8 @@ " #endif /* !(__ASSEMBLY__) */\n" " \n" "Index: linux/arch/sparc/kernel/kprobes.c\n" - "=================================--- linux.orig/arch/sparc/kernel/kprobes.c\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/kernel/kprobes.c\n" "+++ linux/arch/sparc/kernel/kprobes.c\n" "@@ -83,7 +83,7 @@ static void __kprobes save_previous_kpro\n" " \n" @@ -188,7 +192,8 @@ " \t\t\t\tgoto ss_probe;\n" " \t\t}\n" "Index: linux/arch/sparc/kernel/leon_smp.c\n" - "=================================--- linux.orig/arch/sparc/kernel/leon_smp.c\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/kernel/leon_smp.c\n" "+++ linux/arch/sparc/kernel/leon_smp.c\n" "@@ -343,7 +343,7 @@ static void leon_ipi_resched(int cpu)\n" " \n" @@ -200,7 +205,8 @@ " \tif (work->single) {\n" " \t\twork->single = 0;\n" "Index: linux/arch/sparc/kernel/nmi.c\n" - "=================================--- linux.orig/arch/sparc/kernel/nmi.c\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/kernel/nmi.c\n" "+++ linux/arch/sparc/kernel/nmi.c\n" "@@ -100,20 +100,20 @@ notrace __kprobes void perfctr_irq(int i\n" " \t\tpcr_ops->write_pcr(0, pcr_ops->pcr_nmi_disable);\n" @@ -212,10 +218,10 @@ "+\t\t__this_cpu_write(nmi_touch, 0);\n" " \t\ttouched = 1;\n" " \t}\n" - "-\tif (!touched && __get_cpu_var(last_irq_sum) = sum) {\n" - "+\tif (!touched && __this_cpu_read(last_irq_sum) = sum) {\n" + "-\tif (!touched && __get_cpu_var(last_irq_sum) == sum) {\n" + "+\tif (!touched && __this_cpu_read(last_irq_sum) == sum) {\n" " \t\t__this_cpu_inc(alert_counter);\n" - " \t\tif (__this_cpu_read(alert_counter) = 30 * nmi_hz)\n" + " \t\tif (__this_cpu_read(alert_counter) == 30 * nmi_hz)\n" " \t\t\tdie_nmi(\"BUG: NMI Watchdog detected LOCKUP\",\n" " \t\t\t\tregs, panic_on_timeout);\n" " \t} else {\n" @@ -256,7 +262,8 @@ " \n" " \tpcr_ops->write_pcr(0, pcr_ops->pcr_nmi_disable);\n" "Index: linux/arch/sparc/kernel/pci_sun4v.c\n" - "=================================--- linux.orig/arch/sparc/kernel/pci_sun4v.c\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/kernel/pci_sun4v.c\n" "+++ linux/arch/sparc/kernel/pci_sun4v.c\n" "@@ -48,7 +48,7 @@ static int iommu_batch_initialized;\n" " /* Interrupts must be disabled. */\n" @@ -274,7 +281,7 @@ "-\tstruct iommu_batch *p = &__get_cpu_var(iommu_batch);\n" "+\tstruct iommu_batch *p = this_cpu_ptr(&iommu_batch);\n" " \n" - " \tif (p->entry + p->npages = entry)\n" + " \tif (p->entry + p->npages == entry)\n" " \t\treturn;\n" "@@ -106,7 +106,7 @@ static inline void iommu_batch_new_entry\n" " /* Interrupts must be disabled. */\n" @@ -295,7 +302,8 @@ " \tBUG_ON(p->npages >= PGLIST_NENTS);\n" " \n" "Index: linux/arch/sparc/kernel/perf_event.c\n" - "=================================--- linux.orig/arch/sparc/kernel/perf_event.c\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/kernel/perf_event.c\n" "+++ linux/arch/sparc/kernel/perf_event.c\n" "@@ -1013,7 +1013,7 @@ static void update_pcrs_for_enable(struc\n" " \n" @@ -413,7 +421,8 @@ " \t/* If the PMU has the TOE IRQ enable bits, we need to do a\n" " \t * dummy write to the %pcr to clear the overflow bits and thus\n" "Index: linux/arch/sparc/kernel/sun4d_smp.c\n" - "=================================--- linux.orig/arch/sparc/kernel/sun4d_smp.c\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/kernel/sun4d_smp.c\n" "+++ linux/arch/sparc/kernel/sun4d_smp.c\n" "@@ -204,7 +204,7 @@ static void __init smp4d_ipi_init(void)\n" " \n" @@ -425,7 +434,8 @@ " \tif (work->single) {\n" " \t\twork->single = 0;\n" "Index: linux/arch/sparc/kernel/time_64.c\n" - "=================================--- linux.orig/arch/sparc/kernel/time_64.c\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/kernel/time_64.c\n" "+++ linux/arch/sparc/kernel/time_64.c\n" "@@ -765,7 +765,7 @@ void setup_sparc64_timer(void)\n" " \t\t\t : /* no outputs */\n" @@ -437,7 +447,8 @@ " \tmemcpy(sevt, &sparc64_clockevent, sizeof(*sevt));\n" " \tsevt->cpumask = cpumask_of(smp_processor_id());\n" "Index: linux/arch/sparc/mm/tlb.c\n" - "=================================--- linux.orig/arch/sparc/mm/tlb.c\n" + "===================================================================\n" + "--- linux.orig/arch/sparc/mm/tlb.c\n" "+++ linux/arch/sparc/mm/tlb.c\n" "@@ -52,14 +52,14 @@ out:\n" " \n" @@ -457,4 +468,4 @@ " \tif (tb->tlb_nr)\n" " \t\tflush_tlb_pending();" -0a470fe339fa25010049d4956b8c618685aba77be694fcdc1a32b5cd7edaf197 +3e6972a0a120ad192b3a46969ff9fd4f9795c26cda4fc11fa5030745d8769b24
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.