Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751220AbdGNVut (ORCPT ); Fri, 14 Jul 2017 17:50:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56106 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbdGNVur (ORCPT ); Fri, 14 Jul 2017 17:50:47 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D712061220 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ckadabi@codeaurora.org From: Channagoud Kadabi To: gregkh@linuxfoundation.org, tglx@linuxtronix.de Cc: Channagoud Kadabi , rusty@rustcorp.com.au, tj@kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] kernel: cpu: send CPU_UP_CANCELLED notification Date: Fri, 14 Jul 2017 14:50:28 -0700 Message-Id: <1500069028-24269-1-git-send-email-ckadabi@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 894 Lines: 27 If any of the callbacks during cpu up fail undo_cpu_up calls the teardown call backs to rollback states but does not send CPU_UP_CANCELLED. As on 4.9 kernel some drivers still use the notification mechanism for cpu hotplug we need to send CPU_UP_CANCELLED notification so drivers can rollback whatever they did during cpu up. Signed-off-by: Channagoud Kadabi --- kernel/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cpu.c b/kernel/cpu.c index 8f52977..ade5bb2 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -494,6 +494,7 @@ static int cpuhp_up_callbacks(unsigned int cpu, struct cpuhp_cpu_state *st, if (ret) { st->target = prev_state; undo_cpu_up(cpu, st); + cpu_notify(CPU_UP_CANCELED, cpu); break; } } -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project