From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756596AbcH2HU4 (ORCPT ); Mon, 29 Aug 2016 03:20:56 -0400 Received: from nat-hk.nvidia.com ([203.18.50.4]:23592 "EHLO hkmmgate101.nvidia.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756230AbcH2HUx (ORCPT ); Mon, 29 Aug 2016 03:20:53 -0400 X-PGP-Universal: processed; by hkpgpgate102.nvidia.com on Mon, 29 Aug 2016 00:20:50 -0700 From: Sumit Gupta To: , CC: , , , Sumit Gupta Subject: [PATCH ] drivers/base: cacheinfo: remove warning in resume Date: Mon, 29 Aug 2016 12:50:54 +0530 Message-ID: <1472455254-27692-1-git-send-email-sumitg@nvidia.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CPU notifier is present for creating device entries for child node "cache" under parent node "cpu" as per DT. During resume from suspend, while booting all non-boot CPU's, this notifier for adding cache device gets called before cpu device is added by device_resume. Because of this warning message of "parent should not be sleeping" comes during resume. Removing the notifier to explicitly add/remove cache device as CPU and cache device get added/removed anyway as part of normal suspend resume sequence. dpm_resume_end - > dpm_resume -> device_resume Signed-off-by: Sumit Gupta --- drivers/base/cacheinfo.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/base/cacheinfo.c b/drivers/base/cacheinfo.c index e9fd32e91668..17d9c051a16f 100644 --- a/drivers/base/cacheinfo.c +++ b/drivers/base/cacheinfo.c @@ -544,8 +544,6 @@ static int __init cacheinfo_sysfs_init(void) goto out; } } - __hotcpu_notifier(cacheinfo_cpu_callback, 0); - out: cpu_notifier_register_done(); return rc; -- 2.1.4