From patchwork Tue Oct 6 12:20:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 314088 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp517446ilm; Tue, 6 Oct 2020 05:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqbaNpcg9icdzsZwKxNZuQH7zSBoCCFegLqkhd8+OOcqkWClFsernm9SAsIAhquKKudixF X-Received: by 2002:a17:906:ad8a:: with SMTP id la10mr2919359ejb.176.1601986861629; Tue, 06 Oct 2020 05:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601986861; cv=none; d=google.com; s=arc-20160816; b=FULm9Z6gRP4ze3zJSOpNYl2EEpZthhw7crvN551Py+YLw2Af6rpgQspdZ+z46yyZWP U5bdiaTWbgOZc+jZRuvqToL2wPoIDsW5NufMVdvkSj+jY023m1reI16emO6fr/POpQhI 2yngdpDXRs8JgYhmSEQ1JGKbCRxTJvURBBLsNFFXCw5VLlMxZf6oDFCKjePr+OoMd7US c34v/1FhmmAxI7MgqvYAPZkPj+2JTWsQW0FzF6TJvCv05GiJNjZ5LrOhVsREJqr5V7nx zVV8jnT3LTwq2Ws9m1+VESsEi0k8ZTGiSNnM/2n7F+zyCxb8JCZC3xScdoRI6niaUddo Lhxg== 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=xF/1RSp7bqmtycW1zGKYYAA7v8YwsJOV1VWvLd51HvY=; b=QVT+oErwpaeq/5Ut/SyuONqNlbnvC8ATpSN/8MSi9IZ2oEIl0KZvYiRgSeU+iMVxrb 5dSUbZXODya07yUKD8fcY/XCI6kybgVOoZ0TbziQwqgCBMW2FUJAOjFrjdYdd+nSy5fQ nrcKB5+gPD3MVtgi1XZNIytGvJJbNpCKo9dG1BbxIqXkeG/ZuvipFQUg6Pr+uWjVdtPB RU4kGm+rt4BhvyzVxUKcrUsD85IgidmuOOXLB3Hk9PuwiuNhRSqoZm43f0CHQ4I+UFBZ zz/XQebNrv/Aou2JVNK7R++R97juEOPGiaWr42Go33C5P67PRtpj42IgHtCS7ZgiiXIH YbNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNyxWDqW; 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: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw9si1895004ejb.176.2020.10.06.05.21.01; Tue, 06 Oct 2020 05:21:01 -0700 (PDT) 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=JNyxWDqW; 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 S1726404AbgJFMUv (ORCPT + 9 others); Tue, 6 Oct 2020 08:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbgJFMUv (ORCPT ); Tue, 6 Oct 2020 08:20:51 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2384C0613D1 for ; Tue, 6 Oct 2020 05:20:50 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id l11so2707862wmh.2 for ; Tue, 06 Oct 2020 05:20:50 -0700 (PDT) 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=xF/1RSp7bqmtycW1zGKYYAA7v8YwsJOV1VWvLd51HvY=; b=JNyxWDqWBJo/CJXTGKT3YpwfrRWtPB4ugqyRr1olCTfp3iwejoyRXJ+MNVy5D+F6t7 fdTkqXxeWNNoa97xO2nzoK/DwcjRHBtG3ICdkcaBK47O2ri8wGfGGCNdtoZD9SARwm5D LTrKwFRg0j23t6TkXX/7XfecgS9QeYbUtC22nKTabsE5b9LrairpLN1lqhWjvJ0Dc5rM WzS+mafPqZJV/d/5Rkt+BYrtTFrIrCSDdvyu3oRJ4WNPWq9botdJXVmhqz1c/09yZZj2 gnegKviwWZ0ygOWa9lM4sOGjWVldp83ar7kFclo2/HEUX7ZAAq/3VT+xYXBv+UROX8NZ nR7g== 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=xF/1RSp7bqmtycW1zGKYYAA7v8YwsJOV1VWvLd51HvY=; b=JoAOtmA73Dqw+VbZMjOmJaPgrvwSK/CKoGkKv5RVPB/ZB/w12dzFWdgilObQBH9dV0 n12Jj5bRrprXc+W1Ig5Nv5hIG5dOLXwOKQmK3EF9RT+i9jgj/EhX3eCsTcUAZeq3oRpt /usavVeUmgfDsBZZzISLgNH57fpfU5s5k1Lle2hMVldaKputOYovlb1l0QCdT18UDEWN 6+tLwxcIBfOclbFXsYKZ+nbAc7Iv0Jk+TLyPWtUzJS/u+q8K2AiG5fGRbR+TVGuGM3G4 BKvge6clQwAfRkNGYuoqqDuS1pupEqiMPEfqM2u8HdYV+VqNfLZFxk7zWawlgU7cYe03 Dm8A== X-Gm-Message-State: AOAM5301r6DekO/yJOOGcb9wsuti/XoJ4CIdYeOTocBy+0FR2TkD9kf6 fDv5hwiGjwdzEb18bKVz5Dm2FQ== X-Received: by 2002:a1c:66d5:: with SMTP id a204mr4412406wmc.62.1601986849332; Tue, 06 Oct 2020 05:20:49 -0700 (PDT) Received: from localhost.localdomain (lns-bzn-59-82-252-130-8.adsl.proxad.net. [82.252.130.8]) by smtp.gmail.com with ESMTPSA id s19sm3742521wmc.41.2020.10.06.05.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 05:20:48 -0700 (PDT) From: Daniel Lezcano To: rafael@kernel.org, srinivas.pandruvada@linux.intel.com Cc: lukasz.luba@arm.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rui.zhang@intel.com, Andrew Morton , Andy Shevchenko , Akinobu Mita Subject: [PATCH 1/4] units: Add Watt units Date: Tue, 6 Oct 2020 14:20:21 +0200 Message-Id: <20201006122024.14539-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201006122024.14539-1-daniel.lezcano@linaro.org> References: <20201006122024.14539-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org As there are the temperature units, let's add the Watt macros definition. Signed-off-by: Daniel Lezcano --- include/linux/units.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 Reviewed-by: Lukasz Luba 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 +#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)