[PATCH v2 34/52] scsi, bnx2fc: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
of callback registration. Cc: Eddie Wai Cc: "James E.J. Bottomley" Cc: Ingo Molnar Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/s

[PATCH v2 33/52] scsi, bnx2i: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
of callback registration. Cc: Eddie Wai Cc: "James E.J. Bottomley" Cc: Ingo Molnar Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- drivers/scsi/bnx2i/bnx2i_init.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH v2 31/52] arm64, debug-monitors: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Catalin Marinas Cc: Russell King Cc: Ingo Molnar Cc: linux-arm-ker...@lists.infradead.org Acked-by: Will Deacon Signed-off-by: Srivatsa S. Bhat --- arch/arm64/kernel/debug-monitors.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH v2 35/52] scsi, fcoe: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
of callback registration. Cc: Robert Love Cc: "James E.J. Bottomley" Cc: Ingo Molnar Cc: fcoe-de...@open-fcoe.org Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- drivers/scsi/fcoe/fcoe.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-)

[PATCH v2 32/52] powercap, intel-rapl: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
ael J. Wysocki" Cc: Jacob Pan Cc: Srinivas Pandruvada Cc: Ingo Molnar Signed-off-by: Srivatsa S. Bhat --- drivers/powercap/intel_rapl.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c index 3c6768

[PATCH v2 29/52] x86, kvm: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
of callback registration. Cc: Gleb Natapov Cc: Paolo Bonzini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: k...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kvm/x86.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-)

[PATCH v2 27/52] x86, pci, amd-bus: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
of callback registration. Cc: Bjorn Helgaas Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: linux-...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/pci/amd_bus.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v2 30/52] arm64, hw_breakpoint.c: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Catalin Marinas Cc: Lorenzo Pieralisi Cc: Ingo Molnar Cc: linux-arm-ker...@lists.infradead.org Acked-by: Will Deacon Signed-off-by: Srivatsa S. Bhat --- arch/arm64/kernel/hw_breakpoint.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff

[PATCH v2 28/52] x86, oprofile, nmi: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/oprofile/nmi_int.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c ind

[PATCH v2 26/52] x86, hpet: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
of callback registration. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/hpet.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c ind

[PATCH v2 25/52] x86, amd, uncore: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
form of callback registration. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/cpu/perf_event_amd_uncore.c |7 --- 1 file

[PATCH v2 23/52] x86, intel, cacheinfo: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Borislav Petkov Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/cpu/intel_cacheinfo.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --

[PATCH v2 20/52] x86, therm_throt.c: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Tony Luck Cc: Borislav Petkov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: linux-e...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/cpu/mcheck/therm_throt.c |5 - 1 file

[PATCH v2 21/52] x86, therm_throt.c: Remove unused therm_cpu_lock

2014-02-14 Thread Srivatsa S. Bhat
is unnecessary now. Remove it. Cc: Tony Luck Cc: Borislav Petkov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: linux-e...@vger.kernel.org Suggested-by: Oleg Nesterov Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/cpu/mcheck/therm_thro

[PATCH v2 22/52] x86, amd, ibs: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
of callback registration. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/cpu/perf_event_amd_ibs.c |6 +++--- 1 file changed, 3

[PATCH v2 16/52] x86, cpuid: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
of callback registration. Cc: "H. Peter Anvin" Cc: Thomas Gleixner Cc: Ingo Molnar Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/cpuid.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/cpuid.c b/arch/

[PATCH v2 21/52] x86, therm_throt.c: Remove unused therm_cpu_lock

2014-02-14 Thread Srivatsa S. Bhat
Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/cpu/mcheck/therm_throt.c | 13 - 1 file changed, 13 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/therm_throt.c b/arch/x86/kernel/cpu/mcheck/therm_throt.c index e05dfa3..d921b7e 100644

[PATCH v2 22/52] x86, amd, ibs: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/cpu/perf_event_amd_ibs.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event_amd_ibs.c b/arch/x86/kernel/cpu/perf_event_amd_ibs.c index 4b8e4d3..4c36bbe 100644

[PATCH v2 16/52] x86, cpuid: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: H. Peter Anvin h...@zytor.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/cpuid.c | 15 --- 1 file changed, 8

[PATCH v2 20/52] x86, therm_throt.c: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
by using this latter form of callback registration. Cc: Tony Luck tony.l...@intel.com Cc: Borislav Petkov b...@alien8.de Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: linux-e...@vger.kernel.org Signed-off-by: Srivatsa S

[PATCH v2 26/52] x86, hpet: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/hpet.c |4 +++- 1 file changed, 3 insertions

[PATCH v2 25/52] x86, amd, uncore: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/cpu/perf_event_amd_uncore.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event_amd_uncore.c b/arch/x86/kernel/cpu/perf_event_amd_uncore.c index 754291a

[PATCH v2 23/52] x86, intel, cacheinfo: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
by using this latter form of callback registration. Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: Borislav Petkov b...@suse.de Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/cpu

[PATCH v2 30/52] arm64, hw_breakpoint.c: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
by using this latter form of callback registration. Cc: Catalin Marinas catalin.mari...@arm.com Cc: Lorenzo Pieralisi lorenzo.pieral...@arm.com Cc: Ingo Molnar mi...@kernel.org Cc: linux-arm-ker...@lists.infradead.org Acked-by: Will Deacon will.dea...@arm.com Signed-off-by: Srivatsa S. Bhat srivatsa.b

[PATCH v2 28/52] x86, oprofile, nmi: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
Richter r...@kernel.org Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/oprofile/nmi_int.c | 15 +-- 1 file changed, 13 insertions

[PATCH v2 27/52] x86, pci, amd-bus: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Bjorn Helgaas bhelg...@google.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: linux-...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com

[PATCH v2 29/52] x86, kvm: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Gleb Natapov g...@kernel.org Cc: Paolo Bonzini pbonz...@redhat.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: k...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b

[PATCH v2 31/52] arm64, debug-monitors: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
by using this latter form of callback registration. Cc: Catalin Marinas catalin.mari...@arm.com Cc: Russell King rmk+ker...@arm.linux.org.uk Cc: Ingo Molnar mi...@kernel.org Cc: linux-arm-ker...@lists.infradead.org Acked-by: Will Deacon will.dea...@arm.com Signed-off-by: Srivatsa S. Bhat srivatsa.b

[PATCH v2 35/52] scsi, fcoe: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Robert Love robert.w.l...@intel.com Cc: James E.J. Bottomley jbottom...@parallels.com Cc: Ingo Molnar mi...@kernel.org Cc: fcoe-de...@open-fcoe.org Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers

[PATCH v2 32/52] powercap, intel-rapl: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
: Rafael J. Wysocki r...@rjwysocki.net Cc: Jacob Pan jacob.jun@linux.intel.com Cc: Srinivas Pandruvada srinivas.pandruv...@linux.intel.com Cc: Ingo Molnar mi...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/powercap/intel_rapl.c | 10 -- 1 file

[PATCH v2 34/52] scsi, bnx2fc: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Eddie Wai eddie@broadcom.com Cc: James E.J. Bottomley jbottom...@parallels.com Cc: Ingo Molnar mi...@kernel.org Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 12

[PATCH v2 33/52] scsi, bnx2i: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Eddie Wai eddie@broadcom.com Cc: James E.J. Bottomley jbottom...@parallels.com Cc: Ingo Molnar mi...@kernel.org Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/scsi/bnx2i/bnx2i_init.c | 12

[PATCH v2 38/52] drivers/base/topology.c: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
form of callback registration. Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Ingo Molnar mi...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/base/topology.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH v2 37/52] acpi-cpufreq: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Rafael J. Wysocki r...@rjwysocki.net Cc: Ingo Molnar mi...@kernel.org Cc: cpuf...@vger.kernel.org Cc: linux...@vger.kernel.org Acked-by: Viresh Kumar viresh.ku...@linaro.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/cpufreq

[PATCH v2 39/52] clocksource, dummy-timer: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
by using this latter form of callback registration. Cc: Daniel Lezcano daniel.lezc...@linaro.org Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/clocksource/dummy_timer.c | 11 --- 1 file

[PATCH v2 36/52] zsmalloc: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
form of callback registration. Cc: Minchan Kim minc...@kernel.org Cc: Nitin Gupta ngu...@vflare.org Cc: Ingo Molnar mi...@kernel.org Cc: linux...@kvack.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- mm/zsmalloc.c | 17 ++--- 1 file changed, 14 insertions

[PATCH v2 42/52] octeon, watchdog: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Wim Van Sebroeck w...@iguana.be Cc: Ingo Molnar mi...@kernel.org Cc: linux-watch...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/watchdog/octeon-wdt-main.c | 11 +-- 1 file changed, 9 insertions

[PATCH v2 41/52] oprofile, nmi-timer: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Robert Richter r...@kernel.org Cc: Ingo Molnar mi...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/oprofile/nmi_timer_int.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions

[PATCH v2 40/52] intel-idle: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Len Brown l...@kernel.org Cc: Rafael J. Wysocki r...@rjwysocki.net Cc: Ingo Molnar mi...@kernel.org Cc: linux...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/idle/intel_idle.c | 12 ++-- 1 file changed

[PATCH v2 43/52] thermal, x86-pkg-temp: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin eduardo.valen...@ti.com Cc: Ingo Molnar mi...@kernel.org Cc: linux...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/thermal/x86_pkg_temp_thermal.c

[PATCH v2 47/52] trace, ring-buffer: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@kernel.org Acked-by: Steven Rostedt rost...@goodmis.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- kernel/trace/ring_buffer.c | 19 +++ 1 file

[PATCH v2 48/52] profile: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
form of callback registration. Cc: Al Viro v...@zeniv.linux.org.uk Cc: Mauro Carvalho Chehab mche...@redhat.com Cc: Ingo Molnar mi...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- kernel/profile.c | 20 +++- 1 file changed, 15 insertions(+), 5

[PATCH v2 46/52] xen, balloon: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
boris.ostrov...@oracle.com Cc: David Vrabel david.vra...@citrix.com Cc: Ingo Molnar mi...@kernel.org Cc: xen-de...@lists.xenproject.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/xen/balloon.c | 35 +++ 1 file changed, 23 insertions(+), 12

[PATCH v2 44/52] hwmon, coretemp: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Fenghua Yu fenghua...@intel.com Cc: Jean Delvare jdelv...@suse.de Cc: Ingo Molnar mi...@kernel.org Cc: lm-sens...@lm-sensors.org Acked-by: Guenter Roeck li...@roeck-us.net Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/hwmon

[PATCH v2 45/52] hwmon, via-cputemp: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Jean Delvare jdelv...@suse.de Cc: Ingo Molnar mi...@kernel.org Cc: lm-sens...@lm-sensors.org Acked-by: Guenter Roeck li...@roeck-us.net Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- drivers/hwmon/via-cputemp.c | 14

[PATCH v2 49/52] mm, vmstat: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
...@kernel.org Cc: linux...@kvack.org Acked-by: Christoph Lameter c...@linux.com Reviewed-by: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- mm/vmstat.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm

[PATCH v2 51/52] net/core/flow.c: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
...@davemloft.net Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- net/core/flow.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/core/flow.c b/net/core/flow.c index dfa602c..9a2151f 100644 --- a/net/core/flow.c +++ b/net/core/flow.c @@ -456,6

[PATCH v2 50/52] mm, zswap: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
form of callback registration. Cc: Ingo Molnar mi...@kernel.org Cc: linux...@kvack.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- mm/zswap.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/zswap.c b/mm/zswap.c index e55bab9..d7337fb 100644

[PATCH v2 52/52] net/iucv/iucv.c: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
-by: David S. Miller da...@davemloft.net Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- net/iucv/iucv.c | 121 ++- 1 file changed, 57 insertions(+), 64 deletions(-) diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index cd5b8ec

[PATCH v2 24/52] x86, intel, rapl: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/cpu/perf_event_intel_rapl.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel_rapl.c b/arch/x86/kernel/cpu/perf_event_intel_rapl.c index 5ad35ad

[PATCH v2 19/52] x86, mce: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Tony Luck tony.l...@intel.com Cc: Borislav Petkov b...@alien8.de Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: linux-e...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat

[PATCH v2 04/52] CPU hotplug, perf: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
need the initialization altogether. Cc: Peter Zijlstra a.p.zijls...@chello.nl Cc: Paul Mackerras pau...@samba.org Cc: Ingo Molnar mi...@kernel.org Cc: Arnaldo Carvalho de Melo a...@ghostprotocols.net Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/linux/perf_event.h

[PATCH v2 10/52] arm, kvm: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
-ker...@lists.infradead.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/arm/kvm/arm.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 1d8248e..147b917 100644 --- a/arch/arm/kvm/arm.c +++ b/arch

[PATCH v2 05/52] ia64, salinfo: Fix hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: Ingo Molnar mi...@kernel.org Cc: linux-i...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/ia64/kernel/salinfo.c |6 +- 1 file changed

Re: [PATCH v2 46/52] xen, balloon: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
On 02/14/2014 10:19 PM, Boris Ostrovsky wrote: On 02/14/2014 02:59 AM, Srivatsa S. Bhat wrote: Subsystems that want to register CPU hotplug callbacks, as well as perform initialization for the CPUs that are already online, often do it as shown below: get_online_cpus

Re: [PATCH v2 27/52] x86, pci, amd-bus: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
On 02/14/2014 11:05 PM, Bjorn Helgaas wrote: On Fri, Feb 14, 2014 at 12:55 AM, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com wrote: Subsystems that want to register CPU hotplug callbacks, as well as perform initialization for the CPUs that are already online, often do it as shown below

[PATCH v2 18/52] x86, intel, uncore: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
form of callback registration. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/cpu/perf_event_intel_uncore.c |6 +++--- 1 file

[PATCH v2 14/52] powerpc, sysfs: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
of callback registration. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Olof Johansson Cc: Wang Dongsheng Cc: Ingo Molnar Cc: linuxppc-...@lists.ozlabs.org Acked-by: Madhavan Srinivasan Signed-off-by: Srivatsa S. Bhat --- arch/powerpc/kernel/sysfs.c |8 +++- 1 file changed, 7

[PATCH v2 15/52] x86, msr: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
of callback registration. Cc: "H. Peter Anvin" Cc: Thomas Gleixner Cc: Ingo Molnar Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/msr.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/msr.c b/arch/x86/ke

[PATCH v2 17/52] x86, vsyscall: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
of callback registration. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/x86/kernel/vsyscall_64.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/

[PATCH v2 13/52] sparc, sysfs: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
of callback registration. Cc: "David S. Miller" Cc: Ingo Molnar Cc: sparcli...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/sparc/kernel/sysfs.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/sparc/kernel/sysfs.c b/arch/sparc/kernel/sys

[PATCH v2 09/52] arm, hw-breakpoint: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
form of callback registration. Cc: Russell King Cc: Ingo Molnar Cc: linux-arm-ker...@lists.infradead.org Acked-by: Will Deacon Signed-off-by: Srivatsa S. Bhat --- arch/arm/kernel/hw_breakpoint.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/kernel

[PATCH v2 12/52] s390, smp: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
of callback registration. Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Thomas Gleixner Cc: Ingo Molnar Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/s390/kernel/smp.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/s390/kernel

[PATCH v2 11/52] s390, cacheinfo: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
form of callback registration. Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Ingo Molnar Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/s390/kernel/cache.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/s390/kernel/cache.c b/arch/s390

[PATCH v2 07/52] ia64, topology: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
of callback registration. Cc: Tony Luck Cc: Fenghua Yu Cc: Ingo Molnar Cc: linux-i...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/ia64/kernel/topology.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel

[PATCH v2 08/52] ia64, err-inject: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Tony Luck Cc: Fenghua Yu Cc: Ingo Molnar Cc: linux-i...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/ia64/kernel/err_inject.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/ia64/kernel/err_inject.c

[PATCH v2 06/52] ia64, palinfo: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
of callback registration. Cc: Tony Luck Cc: Fenghua Yu Cc: Ingo Molnar Cc: linux-i...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- arch/ia64/kernel/palinfo.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel

[PATCH v2 03/52] Doc/cpu-hotplug: Specify race-free way to register CPU hotplug callbacks

2014-02-13 Thread Srivatsa S. Bhat
. Cc: Rob Landley Cc: Ingo Molnar Cc: linux-...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat --- Documentation/cpu-hotplug.txt | 45 + 1 file changed, 45 insertions(+) diff --git a/Documentation/cpu-hotplug.txt b/Documentation/cpu-hotplug.txt index

[PATCH v2 02/52] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-13 Thread Srivatsa S. Bhat
hotplug callbacks as well as perform initialization for the CPUs that are already online. Cc: Thomas Gleixner Cc: Toshi Kani Cc: "Rafael J. Wysocki" Cc: Andrew Morton Cc: Peter Zijlstra Cc: Ingo Molnar Acked-by: Oleg Nesterov Signed-off-by: Srivatsa S. Bhat --- include/linux/cp

[PATCH v2 01/52] CPU hotplug: Add lockdep annotations to get/put_online_cpus()

2014-02-13 Thread Srivatsa S. Bhat
From: Gautham R. Shenoy Add lockdep annotations for get/put_online_cpus() and cpu_hotplug_begin()/cpu_hotplug_end(). Cc: Ingo Molnar Reviewed-by: Oleg Nesterov Signed-off-by: Gautham R. Shenoy Signed-off-by: Srivatsa S. Bhat --- kernel/cpu.c | 17 + 1 file changed, 17

[PATCH v2 00/52] CPU hotplug: Fix issues with callback registration

2014-02-13 Thread Srivatsa S. Bhat
/put_online_cpus() Srivatsa S. Bhat (51): CPU hotplug: Provide lockless versions of callback registration functions Doc/cpu-hotplug: Specify race-free way to register CPU hotplug callbacks CPU hotplug, perf: Fix CPU hotplug callback registration ia64, salinfo: Fix hotplug

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-13 Thread Srivatsa S. Bhat
On 02/13/2014 11:14 PM, Oleg Nesterov wrote: > On 02/12, Srivatsa S. Bhat wrote: >> >> On 02/11/2014 10:45 PM, Oleg Nesterov wrote: >>> >>> I am a bit confused... If we do this, why we can't simply turn >>> cpu_add_re

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-13 Thread Srivatsa S. Bhat
On 02/12/2014 11:48 AM, Srivatsa S. Bhat wrote: > On 02/12/2014 02:21 AM, Toshi Kani wrote: >> On Wed, 2014-02-12 at 00:50 +0530, Srivatsa S. Bhat wrote: >>> On 02/11/2014 11:05 PM, Toshi Kani wrote: >> : >>>> How about this? foo_cpu_notifier returns NOP w

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-13 Thread Srivatsa S. Bhat
On 02/12/2014 11:48 AM, Srivatsa S. Bhat wrote: On 02/12/2014 02:21 AM, Toshi Kani wrote: On Wed, 2014-02-12 at 00:50 +0530, Srivatsa S. Bhat wrote: On 02/11/2014 11:05 PM, Toshi Kani wrote: : How about this? foo_cpu_notifier returns NOP when foo_notifier_ready is false

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-13 Thread Srivatsa S. Bhat
On 02/13/2014 11:14 PM, Oleg Nesterov wrote: On 02/12, Srivatsa S. Bhat wrote: On 02/11/2014 10:45 PM, Oleg Nesterov wrote: I am a bit confused... If we do this, why we can't simply turn cpu_add_remove_lock into rw_semaphore? [...snip...] cpu_notifier_register_begin

[PATCH v2 01/52] CPU hotplug: Add lockdep annotations to get/put_online_cpus()

2014-02-13 Thread Srivatsa S. Bhat
-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- kernel/cpu.c | 17 + 1 file changed, 17 insertions(+) diff --git a/kernel/cpu.c b/kernel/cpu.c index deff2e6..33caf5e 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -19,6 +19,7 @@ #include linux/mutex.h #include linux/gfp.h

[PATCH v2 00/52] CPU hotplug: Fix issues with callback registration

2014-02-13 Thread Srivatsa S. Bhat
lockdep annotations to get/put_online_cpus() Srivatsa S. Bhat (51): CPU hotplug: Provide lockless versions of callback registration functions Doc/cpu-hotplug: Specify race-free way to register CPU hotplug callbacks CPU hotplug, perf: Fix CPU hotplug callback registration ia64

[PATCH v2 02/52] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-13 Thread Srivatsa S. Bhat
Cc: Ingo Molnar mi...@kernel.org Acked-by: Oleg Nesterov o...@redhat.com Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/linux/cpu.h | 47 +++ kernel/cpu.c| 21 +++-- 2 files changed, 66 insertions

[PATCH v2 03/52] Doc/cpu-hotplug: Specify race-free way to register CPU hotplug callbacks

2014-02-13 Thread Srivatsa S. Bhat
. Cc: Rob Landley r...@landley.net Cc: Ingo Molnar mi...@kernel.org Cc: linux-...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- Documentation/cpu-hotplug.txt | 45 + 1 file changed, 45 insertions(+) diff --git

[PATCH v2 06/52] ia64, palinfo: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: Ingo Molnar mi...@kernel.org Cc: linux-i...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/ia64/kernel/palinfo.c |6 +- 1 file changed

[PATCH v2 07/52] ia64, topology: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: Ingo Molnar mi...@kernel.org Cc: linux-i...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/ia64/kernel/topology.c |6 +- 1 file

[PATCH v2 08/52] ia64, err-inject: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
by using this latter form of callback registration. Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: Ingo Molnar mi...@kernel.org Cc: linux-i...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/ia64/kernel/err_inject.c | 15

[PATCH v2 12/52] s390, smp: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Martin Schwidefsky schwidef...@de.ibm.com Cc: Heiko Carstens heiko.carst...@de.ibm.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com

[PATCH v2 11/52] s390, cacheinfo: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Martin Schwidefsky schwidef...@de.ibm.com Cc: Heiko Carstens heiko.carst...@de.ibm.com Cc: Ingo Molnar mi...@kernel.org Cc: linux-s...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/s390/kernel/cache.c |5

[PATCH v2 13/52] sparc, sysfs: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: David S. Miller da...@davemloft.net Cc: Ingo Molnar mi...@kernel.org Cc: sparcli...@vger.kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/sparc/kernel/sysfs.c |6 +- 1 file changed, 5 insertions(+), 1 deletion

[PATCH v2 09/52] arm, hw-breakpoint: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Russell King li...@arm.linux.org.uk Cc: Ingo Molnar mi...@kernel.org Cc: linux-arm-ker...@lists.infradead.org Acked-by: Will Deacon will.dea...@arm.com Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/arm/kernel

[PATCH v2 14/52] powerpc, sysfs: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
Srinivasan ma...@linux.vnet.ibm.com Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/powerpc/kernel/sysfs.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index 97e1dc9..d90d4b7 100644

[PATCH v2 15/52] x86, msr: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: H. Peter Anvin h...@zytor.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/msr.c | 16 +--- 1 file changed, 9

[PATCH v2 17/52] x86, vsyscall: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
this latter form of callback registration. Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@kernel.org Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/vsyscall_64.c |6 +- 1 file changed, 5

[PATCH v2 18/52] x86, intel, uncore: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- arch/x86/kernel/cpu/perf_event_intel_uncore.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c index

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-11 Thread Srivatsa S. Bhat
On 02/12/2014 02:21 AM, Toshi Kani wrote: > On Wed, 2014-02-12 at 00:50 +0530, Srivatsa S. Bhat wrote: >> On 02/11/2014 11:05 PM, Toshi Kani wrote: > : >>> How about this? foo_cpu_notifier returns NOP when foo_notifier_ready is >>> false. >>> >>

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-11 Thread Srivatsa S. Bhat
t we can't use the familiar get/put_online_cpus() in this type of callback registration scenario. We can introduce a sane set of APIs that work well in such situations and use them consistently. For example, something like the code snippet shown below looks pretty neat to me: cpu_notifi

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-11 Thread Srivatsa S. Bhat
On 02/11/2014 10:45 PM, Oleg Nesterov wrote: > On 02/11, Srivatsa S. Bhat wrote: >> >> +static DECLARE_RWSEM(cpu_hotplug_rwsem); >> + >> +void cpu_notifier_register_begin(void) >> +{ >> +down_read(_hotplug_rwsem); >> +} >> + >> +v

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-11 Thread Srivatsa S. Bhat
On 02/11/2014 06:56 AM, Toshi Kani wrote: > On Thu, 2014-02-06 at 03:34 +0530, Srivatsa S. Bhat wrote: > : [...] >> >> Also, since cpu_maps_update_begin/done() is like a super-set of >> get/put_online_cpus(), the former naturally protects the critical sections &g

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-11 Thread Srivatsa S. Bhat
On 02/11/2014 06:56 AM, Toshi Kani wrote: On Thu, 2014-02-06 at 03:34 +0530, Srivatsa S. Bhat wrote: : [...] Also, since cpu_maps_update_begin/done() is like a super-set of get/put_online_cpus(), the former naturally protects the critical sections from concurrent hotplug operations. get

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-11 Thread Srivatsa S. Bhat
On 02/11/2014 10:45 PM, Oleg Nesterov wrote: On 02/11, Srivatsa S. Bhat wrote: +static DECLARE_RWSEM(cpu_hotplug_rwsem); + +void cpu_notifier_register_begin(void) +{ +down_read(cpu_hotplug_rwsem); +} + +void cpu_notifier_register_end(void) +{ +up_read(cpu_hotplug_rwsem

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-11 Thread Srivatsa S. Bhat
(); for_each_online_cpu(cpu) init_cpu(cpu); register_cpu_notifier(foobar_cpu_notifier); cpu_notifier_register_done(); What do you think? Regards, Srivatsa S. Bhat -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions

2014-02-11 Thread Srivatsa S. Bhat
On 02/12/2014 02:21 AM, Toshi Kani wrote: On Wed, 2014-02-12 at 00:50 +0530, Srivatsa S. Bhat wrote: On 02/11/2014 11:05 PM, Toshi Kani wrote: : How about this? foo_cpu_notifier returns NOP when foo_notifier_ready is false. register_cpu_notifier(foobar_cpu_notifier

Re: [PATCH 26/51] x86, oprofile, nmi: Fix CPU hotplug callback registration

2014-02-10 Thread Srivatsa S. Bhat
On 02/11/2014 12:57 AM, Gautham R Shenoy wrote: > On Tue, Feb 11, 2014 at 12:37:37AM +0530, Gautham R Shenoy wrote: >> Hi, >> >> On Thu, Feb 06, 2014 at 03:39:22AM +0530, Srivatsa S. Bhat wrote: >>> Fix the oprofile code in x86 by using this latter form of callbac

Re: [PATCH 24/51] x86, hpet: Fix CPU hotplug callback registration

2014-02-10 Thread Srivatsa S. Bhat
On 02/11/2014 12:28 AM, Gautham R Shenoy wrote: > Hi, > > On Thu, Feb 06, 2014 at 03:39:00AM +0530, Srivatsa S. Bhat wrote: >> diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c >> index da85a8e..199aaae 100644 >> --- a/arch/x86/kernel/hpet.c >

<    2   3   4   5   6   7   8   9   10   11   >