From patchwork Mon Nov 16 15:26:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 324389 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3407383ils; Mon, 16 Nov 2020 07:28:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmDsoB3E7bVWSwi1H5lZGLZqngv7uBGx0BIA5Z9u8UIEfGA/qS8QmicaaGBRlxDbv0nNql X-Received: by 2002:a17:906:d41:: with SMTP id r1mr14619470ejh.383.1605540489742; Mon, 16 Nov 2020 07:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605540489; cv=none; d=google.com; s=arc-20160816; b=KB0Z+n0HL6hF1fw7QnEoI2P8twi+oPh+fnAEBIPYbLHtgsI9QCvng+fosCjGBeIx8v ZSGrgNZcBSMLemHlBFfrHtm686OdWCPTqBSIwzKfCLlAqntzoYp52E5oeeIr4pZUxqT1 gKZLq6OXQozv1ben3cbnZafx+BuRoSh5PdqBc5C8LD6qSAC4L8fV1AIJmJRxLdaMPYiq kfDdmSNBexu15T3qwmLc77E8+2PC6SfOMzyJGJAPNxO6RddNvYEO9MQ2CANDqevBG+ar W7Jvd1lKwJBQiQzMX8MNCOiaVvuqQ1gXsTts2SVUbnGc+0m2ftP+PSWhkwd2ZfvmWwwl /71g== 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=AmlX7mIHWO/6GCqznBk4hDJFGDkCXSYgmtALkWUxicfUVRh3Ovlkg84iySQDmWG2KB WUPHfknAIc78OHYIYTxCiC1nPUiu1pfZhVcsFfDWj+EAXi6Qxei3QOYe+Q4j57a7QJ1W BbeTV18r12Be1UHqxqK3VXbDSuXFY/BKLEAzl9kXPJo5bQo7vfWkxCFyPQr8aoQY0UN9 GeuiOm0RRDXEGEM4bcUz/pKfbM4/UxcQyBL7ssIU2Z4hSWZKUzg15Spm9/dbEWX2my5T vOxyIktUjrWIFHwQMbWPJ1s6INnh0esYYEAH2Yt6038iflv7ODjA4MQU4T6sn8zRgqD7 5N7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jHKaw16f; 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 by7si9037020edb.25.2020.11.16.07.28.09; Mon, 16 Nov 2020 07:28: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=jHKaw16f; 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 S1731164AbgKPP1N (ORCPT + 9 others); Mon, 16 Nov 2020 10:27:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730912AbgKPP1N (ORCPT ); Mon, 16 Nov 2020 10:27:13 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76869C0613CF for ; Mon, 16 Nov 2020 07:27:11 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id p22so24073758wmg.3 for ; Mon, 16 Nov 2020 07:27:11 -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=jHKaw16f3JcgFuPOI2wbaph8tTmnALDn0khAmRDjUattsPMELsHZEeszdwoUn49Ygt ywb62K5wnfWRAWHSPxljbLVvR0CKhM7faGVfdHxG/KzrkMIeHO763+hOptr5w2JHxRrb 8VoSAokMfLFxjM2zKnCDJ1fo8c0ZKrFKMOJDepDRi3pqMQR8WTaVJcXh07QuwnFUT/83 hMJB/s920zKWRyvH2BE/bHNO4O0YHrgz44uwS0t4vLV7br81HjzHs46KUHHBQZ6olvKB 0rQs0jGm04oV47EGxHU2rU93VXl4lwSB5PmF4YCcYTVE0sF47UrHZa5KuKklQ+4QubVB lYOg== 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=iPVYCT+Z0m2wdTIJUlCkrMtkGtLIXw6cjO7PYSyb64DXkjshL0V9tYOl4IysEfA96L dpvpytv/lJwRN0C+YhznfKnX3w6YPeGt16yPMLLg/MQlUKlsb/8tXhSGidj8fmb9zuhM P8WksgxGSxg/8fXmj9AVIY/TcWIUCbh2mWuMG+Wa2nfYGn1Zf+uo6/yjWilbIvFonWfM HZQ4Mv/qycHW9k6Z+0dhGHHiDtWMbc6Bz5NNbwJVRAnIfemBqnMCagbzaJ9Nt5zxMAIC ppqOCh7e/Ecfzc/Xbs1snBgS0S9Bt7aN0N6ynWKj56jBMlw1WFW2bk6G8Z4gDyFswy1T fxkg== X-Gm-Message-State: AOAM533AobDqvU1Anh12plucoYhV5tJBdzfK5yY+xNJq+chzKZjaJ0+S +0lkOxRf4McnwgXDd7G+J5rZ5Q== X-Received: by 2002:a1c:ddd7:: with SMTP id u206mr15867144wmg.27.1605540430116; Mon, 16 Nov 2020 07:27:10 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-135-240.adsl.proxad.net. [82.252.135.240]) by smtp.gmail.com with ESMTPSA id k20sm19930453wmi.15.2020.11.16.07.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 07:27:09 -0800 (PST) From: Daniel Lezcano To: rjw@rjwysocki.net Cc: ilina@codeaurora.org, ulf.hansson@linaro.org, linux-pm@vger.kernel.org, lukasz.luba@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rkumbako@codeaurora.org, rui.zhang@intel.com Subject: [PATCH v2 1/4] units: Add Watt units Date: Mon, 16 Nov 2020 16:26:46 +0100 Message-Id: <20201116152649.11482-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201116152649.11482-1-daniel.lezcano@linaro.org> References: <20201116152649.11482-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 Reviewed-by: Lukasz Luba --- include/linux/units.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 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)