Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753950Ab3EMLcE (ORCPT ); Mon, 13 May 2013 07:32:04 -0400 Received: from mga03.intel.com ([143.182.124.21]:63059 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751933Ab3EMLcC convert rfc822-to-8bit (ORCPT ); Mon, 13 May 2013 07:32:02 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,662,1363158000"; d="scan'208";a="301629868" From: "R, Durgadoss" To: "linux-kernel@vger.kernel.org" , "Linux PM list (linux-pm@vger.kernel.org)" CC: "Greg KH (gregkh@linuxfoundation.org)" , "Wysocki, Rafael J" Subject: Kobject_uevent in cpufreq.c Thread-Topic: Kobject_uevent in cpufreq.c Thread-Index: Ac5PzAsHEbqKdSyMS+KKwxMdrUgOtA== Date: Mon, 13 May 2013 11:31:57 +0000 Message-ID: <4D68720C2E767A4AA6A8796D42C8EB59C8D667@BGSMSX101.gar.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1025 Lines: 26 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/