Message ID | 20201123214208.11007-2-daniel.lezcano@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp3859598ejb; Mon, 23 Nov 2020 13:44:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzb/QSsRGBIHQ8JSC0J6n8IOX+DSvP4AX4pBJQvlHaP/kthWj+06afcIty2Z02WLGoB5PuU X-Received: by 2002:a17:906:145b:: with SMTP id q27mr1460604ejc.86.1606167849264; Mon, 23 Nov 2020 13:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606167849; cv=none; d=google.com; s=arc-20160816; b=u3N12Sm5xlFH+lYfQKbcM6M4QCGQr1kEN792s5QrLOZ2njXhunAo/aiAxqXF1hqEY0 CRUzQLfYBvHtg5Aid7RH95VKe4ku2uDk+yVb35gpBg/lHoAgk0Ob4Ef1Me3sUoIIbQPb t0y0K7LamckNBNUL3OlMZTRYAWX/2pCBn2tC0Z55TOfIdJ3IglK+XDg8earClpB9zR1N EVOySMxEC4ofnvJyzOvAnmYaHbl4CiinB/HS3iD/mNiXd9GqOBQzb94SL3tSwEcrw5Wi y7R4mChjnDcApewDpBBj1IqczI3Qlh3G7U7PZNkdShdI0c5X8XatR+pwUgLOlGunwGNP rvjA== 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:dkim-signature; bh=AN+diq6krUutxY4s1BjD5o/2cLxtj1QMMKMF7O1rYVo=; b=niyk4hu+QSsfRCKZsgqSsmPlyZ+OW3GJvGuE5oY/tUemdJBHAnhofqjoeFATuRqgaH sfYlkuX1XKjqorgwAy6VcZV//XqZ2sXBg1EfDDrRI/SjuJ3YM7nd9f22qazpCH8059JA GRwull8DS0PuUsLcSFw2wnhqwtat/pztoQq1a/RUCJKZKq6viY4L/zN6JdLZIBy0gJfe O3DT29EpeB3CtENjkY9Dxt060C1/Mu0PFO2HqQ6G2SmJjYDZJGqidmxvtSPMr2hh5qdE khR5J9yaQLR6uAuqpZUIaOfeSiAw8Unv2iaciKGjgn7kUa7XGAo9cI4SSX1Y81zKaLTz 5DOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TMunjAZv; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-pm-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be11si7076134edb.164.2020.11.23.13.44.09; Mon, 23 Nov 2020 13:44:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TMunjAZv; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731487AbgKWVmX (ORCPT <rfc822;jun.nie@linaro.org> + 8 others); Mon, 23 Nov 2020 16:42:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731430AbgKWVmW (ORCPT <rfc822;linux-pm@vger.kernel.org>); Mon, 23 Nov 2020 16:42:22 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1127CC061A4D for <linux-pm@vger.kernel.org>; Mon, 23 Nov 2020 13:42:22 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id r17so20333684wrw.1 for <linux-pm@vger.kernel.org>; Mon, 23 Nov 2020 13:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AN+diq6krUutxY4s1BjD5o/2cLxtj1QMMKMF7O1rYVo=; b=TMunjAZvezqNRjxxbJ02gu00nqa+UL1Sr0P24qsBWwWQit+/eyOfS4Uk25FGQsV5O7 RI6hgMN7bRBIDD8bb38R0R8jj61Se6x6QmJSJnpCFMlhY04T9vwpNS+z8mp5noXKYdOh br1EMUUeTwBaR9UM1yiG59VyraUTIp5CHtXPa0k4LjZYoqtNG4wNm/bC1PJmQ+PXU/43 2EvGCjpSWkmr+v6sTAvnAUS2xE1ece7nCW6mW6v7o7oK+vggLzyf9qk9eh233vn41Jl+ QDZoT+hs4PcW8iqXR2qip0LQpWjQpVBFw1TY8nI0E7Z0r6rqU5jwazy+HQ7EX9DmSF+G +W1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AN+diq6krUutxY4s1BjD5o/2cLxtj1QMMKMF7O1rYVo=; b=DJU/xcTX8GIuLUqgYzU3nxuu2xBNyZmkMtpjQW4Qn03nPEoBWhsjqbZgNmHpFnBjX5 p9tgjcIAz5JbN8qGGIG0Iqs9qTViN+ryDCjgz39tdWUnBk1lFcbeiPDsaD2s3qrH92p0 oaEQDwP9YvukGXAh1n8TxcciSjU3l0tVIYJg7RoOqCB43Ry5DfGiLUqWsHb21xgMA2AD z2WSQYUYyvZjdkVkCkaQmOuwpMxcFfpKAItBGdNK041ml+qMR0t0ViC4cPDZo9pUlykY UXabT3maVU2/xorlUTAm6zokybm9INEMNpuZdjiTAsgE3XYLoIfnYezONTMeM+sOvs1t fjGw== X-Gm-Message-State: AOAM530VMMk6QOBjz87SMMY0mH7DJTfqh9yi5KAwAPJhcNc2Rr2JZCDj iOmVuPLHNqLhZPXd7gKN50FOFQ== X-Received: by 2002:a5d:630b:: with SMTP id i11mr1776131wru.404.1606167740649; Mon, 23 Nov 2020 13:42:20 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-157-164.adsl.proxad.net. [82.252.157.164]) by smtp.gmail.com with ESMTPSA id 35sm22400598wro.71.2020.11.23.13.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 13:42:20 -0800 (PST) From: Daniel Lezcano <daniel.lezcano@linaro.org> To: rjw@rjwysocki.net Cc: daniel.lezcano@linaro.org, corbet@lwn.net, ulf.hansson@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, ilina@codeaurora.org, lukasz.luba@arm.com, rkumbako@codeaurora.org, rui.zhang@intel.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 1/4] units: Add Watt units Date: Mon, 23 Nov 2020 22:42:05 +0100 Message-Id: <20201123214208.11007-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201123214208.11007-1-daniel.lezcano@linaro.org> References: <20201123214208.11007-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series | powercap/dtpm: Add the DTPM framework | expand |
diff --git a/include/linux/units.h b/include/linux/units.h index aaf716364ec3..92c234e71cab 100644 --- a/include/linux/units.h +++ b/include/linux/units.h @@ -4,6 +4,10 @@ #include <linux/kernel.h> +#define MILLIWATT_PER_WATT 1000L +#define MICROWATT_PER_MILLIWATT 1000L +#define MICROWATT_PER_WATT 1000000L + #define ABSOLUTE_ZERO_MILLICELSIUS -273150 static inline long milli_kelvin_to_millicelsius(long t)