public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Kobject_uevent in cpufreq.c
@ 2013-05-13 11:31 R, Durgadoss
  2013-05-13 11:58 ` Greg KH (gregkh@linuxfoundation.org)
  0 siblings, 1 reply; 4+ messages in thread
From: R, Durgadoss @ 2013-05-13 11:31 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org,
	Linux PM list (linux-pm@vger.kernel.org)
  Cc: Greg KH (gregkh@linuxfoundation.org), Wysocki, Rafael J

Hi,

I am observing an UEvent issue in cpufreq.c. 
The cpufreq_add_dev() function is called whenever a core is 'onlined'.
we expect the kobject_uevent() method in cpufreq_add_dev() to
send an UEvent with KOBJ_ADD as the action parameter.

But this call fails because of the 'filter function' inside kobject_uevent_env
inside lib/kobject_uevent.c. The ->filter points to 'dev_uevent_filter' in
drivers/base/core.c, where the check for 'device_ktype' fails.

Error message:
kobject: 'cpufreq' (e5bbf290): kobject_uevent_env:
filter function caused the event to drop!

As far as I can see, we need a kset, and associated filter function
inside cpufreq.c to get this working. Is this the right way to go ?
Any other easy/correct ways to get it working ? Please advise.

Thanks,
Durga

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-14 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13 11:31 Kobject_uevent in cpufreq.c R, Durgadoss
2013-05-13 11:58 ` Greg KH (gregkh@linuxfoundation.org)
2013-05-13 16:08   ` R, Durgadoss
2013-05-14 14:50     ` Greg KH (gregkh@linuxfoundation.org)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox