Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2643409pxb; Mon, 6 Sep 2021 01:53:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvoNOz5Zf2g1t1zeZ9qhCfTOp6I2PNZ0jnzb5+jZfspnrkaLyOwolQwmmugpHJmAzwzcOx X-Received: by 2002:a92:c68a:: with SMTP id o10mr7871161ilg.163.1630918421212; Mon, 06 Sep 2021 01:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630918421; cv=none; d=google.com; s=arc-20160816; b=zVwqqB+fWqurgw0e/1888W/gB+zZiGx9mZ6ghuFCgU/VaenKBSGT1257GhDCOnsfFa cc2cZzJH6vFBz0tadftIUFPFjLJbrhw8XlsT1K4s2V4u8KCvtaADs8ddHUbDMnMvCNUh zLEU4nrfvXvYoxsQAvhFLh79PUdWZWZdOXf++kUtSd6Jj4etQ4Vyc1WhMjDLG/ECVBWr tVh7tpGL/m6gwTwv5T1maT5OZZxbGU/lM+Fe6c73nJmc4scDHlyExsAM3CNlP/+dKxh5 3HJh+Fd+YJbQBEL04j69vc821KbucB/1TsFwUDuRHgEb7RXR9i1UlcJiinFNDARe21P7 OFkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=PudhJ2INrnt9l0ohZVoeuJzrPgZApHqB5XHMVLZoTsE=; b=ovVq1Akc6IqsgZXocQvtJn6v0EUCMUHUu7DsJK9dNKtvOy14D9GuP6HBVOlG8TuJUI JkDaHWUHQuO/KO66PChJJvMAhpHf5kv4Oiw1nS4m/YpizGk8afNGkKz3GUJI7JwDxHUr aRyMiwXatW7vTcT8ERMtv1q61OfIammqeDwVzCjBvy8kuQ41DIcFcYBCje1sSRf2U2y5 /iT4q0BfjTleGsO2MHjcLi1aYPstqsORJF5e9xAnWL9tgJMcFtQ5ogVeKKUcRCu8p2kl w7aOWRrGPTDPDUS9yneRedxRWpdCpT9Y8SlnTDQDWuM61JJuUOB53AIfBuQlRX4I/ruj kJ3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e33si6204989jaf.117.2021.09.06.01.53.29; Mon, 06 Sep 2021 01:53:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241750AbhIFIsA (ORCPT + 99 others); Mon, 6 Sep 2021 04:48:00 -0400 Received: from foss.arm.com ([217.140.110.172]:53586 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241013AbhIFIqM (ORCPT ); Mon, 6 Sep 2021 04:46:12 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 753A11063; Mon, 6 Sep 2021 01:45:07 -0700 (PDT) Received: from e123648.arm.com (unknown [10.57.18.108]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CD3863F73D; Mon, 6 Sep 2021 01:45:05 -0700 (PDT) From: Lukasz Luba To: linux-kernel@vger.kernel.org Cc: lukasz.luba@arm.com, dietmar.eggemann@arm.com, qperret@google.com, rafael.j.wysocki@intel.com, linux-pm@vger.kernel.org, vincent.donnefort@arm.com Subject: [PATCH 2/2] Documentation: power: include kernel-doc in Energy Model doc Date: Mon, 6 Sep 2021 09:44:53 +0100 Message-Id: <20210906084453.3068-2-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210906084453.3068-1-lukasz.luba@arm.com> References: <20210906084453.3068-1-lukasz.luba@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Improve the existing documentation of the Energy Model and add kernel-doc comments. This extends an API description and helps better understanding the usage. Signed-off-by: Lukasz Luba --- Documentation/power/energy-model.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/power/energy-model.rst b/Documentation/power/energy-model.rst index 60ac091d3b0d..8a2788afe89b 100644 --- a/Documentation/power/energy-model.rst +++ b/Documentation/power/energy-model.rst @@ -101,8 +101,7 @@ subsystems which use EM might rely on this flag to check if all EM devices use the same scale. If there are different scales, these subsystems might decide to: return warning/error, stop working or panic. See Section 3. for an example of driver implementing this -callback, and kernel/power/energy_model.c for further documentation on this -API. +callback, or Section 2.4 for further documentation on this API 2.3 Accessing performance domains @@ -123,7 +122,17 @@ em_cpu_energy() API. The estimation is performed assuming that the schedutil CPUfreq governor is in use in case of CPU device. Currently this calculation is not provided for other type of devices. -More details about the above APIs can be found in include/linux/energy_model.h. +More details about the above APIs can be found in ```` +or in Section 2.4 + + +2.4 Description details of this API +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. kernel-doc:: include/linux/energy_model.h + :internal: + +.. kernel-doc:: kernel/power/energy_model.c + :export: 3. Example driver -- 2.17.1