OSDN Git Service

cpu-hotplug: Keep atleast 1 online and un-isolated CPU
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Thu, 29 Jun 2017 10:47:55 +0000 (16:17 +0530)
committerPavankumar Kondeti <pkondeti@codeaurora.org>
Thu, 29 Jun 2017 10:57:33 +0000 (16:27 +0530)
commit76aa496f898a16266be01a1543797804d4baa149
treec3dfb8fd5094db86a0a3699b656ed8d65b29a65f
parent84c69cb5aab50088644ee0bd53a7768eff65e14c
cpu-hotplug: Keep atleast 1 online and un-isolated CPU

The PM_QOS_CPU_DMA_LATENCY vote attached to an IRQ is discarded,
if it is affined to an isolated CPU. So we need atleast 1 CPU
in online and un-isolate state. The scheduler rejects isolating
a CPU if it is the only online and un-isolated CPU in the system.
Add the same check for CPU hotplug.

Change-Id: I5bdfe6e3bb0352ed3ae5a2de90097b73d248f3fc
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
include/linux/cpumask.h
kernel/cpu.c