]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/intel_rdt/mbm: Fix MBM overflow handler during CPU hotplug
authorVikas Shivappa <vikas.shivappa@linux.intel.com>
Wed, 16 Aug 2017 01:00:42 +0000 (18:00 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 16 Aug 2017 10:05:41 +0000 (12:05 +0200)
commitbbc4615e0b7df5e21d0991adb4b2798508354924
tree90ad683ed927c5845ff3ae2392b6a468be7d79fe
parenta9110b552d44fedbd1221eb0e5bde81da32d9350
x86/intel_rdt/mbm: Fix MBM overflow handler during CPU hotplug

When a CPU is dying, the overflow worker is canceled and rescheduled on a
different CPU in the same domain. But if the timer is already about to
expire this essentially doubles the interval which might result in a non
detected overflow.

Cancel the overflow worker and reschedule it immediately on a different CPU
in same domain. The work could be flushed as well, but that would
reschedule it on the same CPU.

[ tglx: Rewrote changelog once again ]

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: ravi.v.shankar@intel.com
Cc: tony.luck@intel.com
Cc: fenghua.yu@intel.com
Cc: peterz@infradead.org
Cc: eranian@google.com
Cc: vikas.shivappa@intel.com
Cc: ak@linux.intel.com
Cc: davidcc@google.com
Link: http://lkml.kernel.org/r/1502845243-20454-2-git-send-email-vikas.shivappa@linux.intel.com
arch/x86/kernel/cpu/intel_rdt.c
arch/x86/kernel/cpu/intel_rdt.h
arch/x86/kernel/cpu/intel_rdt_monitor.c
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c