Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1471594

[PATCH ] drivers/base: cacheinfo: remove warning in resume

From Sumit Gupta <sumitg@nvidia.com>
Newsgroups linux.kernel
Subject [PATCH ] drivers/base: cacheinfo: remove warning in resume
Date 2016-08-29 09:30 +0200
Message-ID <sbpb3-4lM-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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 <sumitg@nvidia.com>
---
 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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH ] drivers/base: cacheinfo: remove warning in resume Sumit Gupta <sumitg@nvidia.com> - 2016-08-29 09:30 +0200
  Re: [PATCH ] drivers/base: cacheinfo: remove warning in resume Sudeep Holla <sudeep.holla@arm.com> - 2016-08-30 12:30 +0200
    RE: [PATCH ] drivers/base: cacheinfo: remove warning in resume Sumit Gupta <sumitg@nvidia.com> - 2016-09-02 15:00 +0200
      Re: [PATCH ] drivers/base: cacheinfo: remove warning in resume Sudeep Holla <sudeep.holla@arm.com> - 2016-09-02 17:10 +0200

csiph-web