From patchwork Fri Jan 27 20:20:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinivas pandruvada X-Patchwork-Id: 49669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1033387wrn; Fri, 27 Jan 2023 12:39:35 -0800 (PST) X-Google-Smtp-Source: AK7set9HlWOsLi2KfbryJEFwYgxS4tAilVUH6u2+lIrO5jC5iau+wgdaqdSfwfnduy6EFMoI1Jkd X-Received: by 2002:a05:6402:34c7:b0:4a0:a4af:f6c with SMTP id w7-20020a05640234c700b004a0a4af0f6cmr14622858edc.3.1674851975408; Fri, 27 Jan 2023 12:39:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674851975; cv=none; d=google.com; s=arc-20160816; b=cwiGCPBpY91B02stB7lXT5J/WTxXD3EAEnb9H5Xi/dcZdU8kmpqRNUtf/KDiMDTF/j TugxPOFuEgPwTa/8c65IO+AvclbOqLTBm+XJxl+nrPxJGagddzYDf5ZZTxML2Ht5UNQy 6DAqXZ03BA5cfX1FSQIqoqDfGY8i3s4RbtyeXgERVSo2BdTK9B9hNoyoAg27e6kRFZFw FeJU3VDLHqyz3pqwPwt2bT8mcc4CB2a/a410w9uVbvlM33op89wuW2ap4WcZcxlafwpY 1sKL2jUtnMSad2zTGt3xsRjM29RvLmiI3zt4xNfTl81H8xL3x/oYI38w0Ri0TxDm2UCu Bj0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1nhAjDLrUCXjohJ6ic7re5SG3hfpBXsS9Px3D4XKMto=; b=zjLoeJPZ/mfSOB4n9t/SniHQp13G5RzN598uqBrUxdKyacwxJV0RHd/YFgnTYNkUV1 DGPlVpt0qxuAhTDhTqqeZJwr0jlc4jmgoV8ejadHZ/q4pKEboVfykCXy/UpCzbShyFfb MNIl2jDwlllxJa0Wx1m/Z+6hyUXrOVpbU7ICRud2YhC2ucOlyHzN6B3Jsmo54CewE/Pu rgPXTVDjtjCWmZftWluLWEctkjjaY18yq8FojA96n7j9XFd5srusjQqy/3unrv0ZdhOS nUS1V2PQfMBwbUukj/QGYoSJMgjqsVovpRPPWh8ZrjsPYkEbCd0h69V8VRSRviXKaOFh 2mHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YQniGedV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a0564021f8200b00485fa68b06csi6771260edc.354.2023.01.27.12.39.11; Fri, 27 Jan 2023 12:39:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YQniGedV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbjA0UVE (ORCPT + 99 others); Fri, 27 Jan 2023 15:21:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232622AbjA0UVB (ORCPT ); Fri, 27 Jan 2023 15:21:01 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 850F077537; Fri, 27 Jan 2023 12:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674850859; x=1706386859; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/O70WEfgi8r2v8zGP89oVB7lVpD2sIvrsqQ6kxAoIH4=; b=YQniGedVZT7Sk5l16EPcQNgNVMgLqwVuOCRFSVqCcSDIlwXrRY1zoUtF RjycdSBa2Zd2sxZidWXURLnssoG7NHACaD4srRp9M05mV2jlIZAoTV/QM UjgYdD9vttJA+Ot/SA2YF26pUd6vNhHey4MH9Obv+T0xzt9QS9kteAW5S bjsuLeuqZg7VZPAsIEA0SowW2iSYPdgmz6WJ1W07VriSGFgbMsejOuvpR 6ONPdbv6ZEVjn34SRA7CuMitHYtJpldhO2rwTrixtZK78xqME95KPTSzf yvw2Ssz8/RlnlfgHbrBwh6bKPlYUSy8PEXS8bR5pfrYqvYfJeVKDVPpsi A==; X-IronPort-AV: E=McAfee;i="6500,9779,10603"; a="310804597" X-IronPort-AV: E=Sophos;i="5.97,252,1669104000"; d="scan'208";a="310804597" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2023 12:20:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10603"; a="693840013" X-IronPort-AV: E=Sophos;i="5.97,252,1669104000"; d="scan'208";a="693840013" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by orsmga008.jf.intel.com with ESMTP; 27 Jan 2023 12:20:56 -0800 From: Srinivas Pandruvada To: rafael@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH v4 1/3] powercap: idle_inject: Export symbols Date: Fri, 27 Jan 2023 12:20:46 -0800 Message-Id: <20230127202048.992504-2-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230127202048.992504-1-srinivas.pandruvada@linux.intel.com> References: <20230127202048.992504-1-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756209584742077453?= X-GMAIL-MSGID: =?utf-8?q?1756209584742077453?= Export symbols for external interfaces, so that they can be used in other loadable modules. Export is done under name space IDLE_INJECT. Signed-off-by: Srinivas Pandruvada --- v2/v3/v4: No change drivers/powercap/idle_inject.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c index 21f7cd7d159b..a7aed680b54f 100644 --- a/drivers/powercap/idle_inject.c +++ b/drivers/powercap/idle_inject.c @@ -163,6 +163,7 @@ void idle_inject_set_duration(struct idle_inject_device *ii_dev, if (!run_duration_us) pr_debug("CPU is forced to 100 percent idle\n"); } +EXPORT_SYMBOL_NS_GPL(idle_inject_set_duration, IDLE_INJECT); /** * idle_inject_get_duration - idle and run duration retrieval helper @@ -177,6 +178,7 @@ void idle_inject_get_duration(struct idle_inject_device *ii_dev, *run_duration_us = READ_ONCE(ii_dev->run_duration_us); *idle_duration_us = READ_ONCE(ii_dev->idle_duration_us); } +EXPORT_SYMBOL_NS_GPL(idle_inject_get_duration, IDLE_INJECT); /** * idle_inject_set_latency - set the maximum latency allowed @@ -188,6 +190,7 @@ void idle_inject_set_latency(struct idle_inject_device *ii_dev, { WRITE_ONCE(ii_dev->latency_us, latency_us); } +EXPORT_SYMBOL_NS_GPL(idle_inject_set_latency, IDLE_INJECT); /** * idle_inject_start - start idle injections @@ -219,6 +222,7 @@ int idle_inject_start(struct idle_inject_device *ii_dev) return 0; } +EXPORT_SYMBOL_NS_GPL(idle_inject_start, IDLE_INJECT); /** * idle_inject_stop - stops idle injections @@ -265,6 +269,7 @@ void idle_inject_stop(struct idle_inject_device *ii_dev) cpu_hotplug_enable(); } +EXPORT_SYMBOL_NS_GPL(idle_inject_stop, IDLE_INJECT); /** * idle_inject_setup - prepare the current task for idle injection @@ -340,6 +345,7 @@ struct idle_inject_device *idle_inject_register(struct cpumask *cpumask) return NULL; } +EXPORT_SYMBOL_NS_GPL(idle_inject_register, IDLE_INJECT); /** * idle_inject_unregister - unregister idle injection control device @@ -360,6 +366,7 @@ void idle_inject_unregister(struct idle_inject_device *ii_dev) kfree(ii_dev); } +EXPORT_SYMBOL_NS_GPL(idle_inject_unregister, IDLE_INJECT); static struct smp_hotplug_thread idle_inject_threads = { .store = &idle_inject_thread.tsk,