From patchwork Tue Dec 1 19:27:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 335143 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp396346ilb; Tue, 1 Dec 2020 11:30:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsC96VWfqHJ9FU5/EBxtmc+Mg/3iOFbYbIozTjuiq41Vi45gP6MZeuH9xodhfVGbsHAMwC X-Received: by 2002:a2e:9916:: with SMTP id v22mr1992533lji.384.1606851048765; Tue, 01 Dec 2020 11:30:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606851048; cv=none; d=google.com; s=arc-20160816; b=QmyJ5WedgmIFiAwLJDJSodNQ+uJVq/APdBIj/1FlqsczIFmiKbIpLgkIJdW/5KBozd uuTzyPUx3oz7LR3ccWfIgA4SmST8oK942jbIjZOR/C8KgSd3B+K89YwYBQDdm9bm4Nzg yfxOSxgXHFVUSMGqdLIlF5KChDldI5uTV+ctAD/lE+3erj6h/ohkUfzvgOZNx8DVJFPG uesIb8hzR3ZhVJhsV4xmJRtYlG0MAeVghBOLr8Icxnm3ucv/rG1i5+pU0D4T10GN4Vw9 Ie1Jbk6LqEESZGAW6r+S6X+vTr0FAfBDd/YptRLw7LJZVJ0u0MwtABs65gS24o1LWuyV YheQ== 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=biB1E7VQfFhALxeshFh3G0/O96X9L1epLBYd8Sfk+Nw=; b=X4SU1kSwU1SsAXUtejOCWxr0DYKLosQwXs8YM1GJOCLb7sV9RJTUwPB/HVLvD5UxRY OLFcr8VY1CMiMvjntu1ggRi7cVgnV42kLCb1WrQdzR6zYvLcWSbK92UWBZ7JPE0Pe+jI izF0QlGuI9oxworDip++M9KkjicYhDL6nxts8pD4yjga66EXyAVFiuxGpT5wFw8Nmlu4 jxlST4ceCPKV3/RgAIaqRwpyTIBsVlf4K9T7MpkcvIYyGHBq/pRL4TfmoD4ZwtFDS+v/ W5wzxpsRs3zx9I4NKiYYp0iGsKCrI2/1v7TWeDGPjctp9jdNfPcfd+0f0T7Jya8Tjqz0 JpFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xLTJ2dkm; 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 v2si579415edw.41.2020.12.01.11.30.48; Tue, 01 Dec 2020 11:30:48 -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=xLTJ2dkm; 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 S2404368AbgLAT30 (ORCPT + 8 others); Tue, 1 Dec 2020 14:29:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404353AbgLAT30 (ORCPT ); Tue, 1 Dec 2020 14:29:26 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04772C0617A7 for ; Tue, 1 Dec 2020 11:28:46 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id p8so4506123wrx.5 for ; Tue, 01 Dec 2020 11:28:45 -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=biB1E7VQfFhALxeshFh3G0/O96X9L1epLBYd8Sfk+Nw=; b=xLTJ2dkmFyetvAQs8XCbA2YVz+kk+PyA+BSVGtk7vkhZpJmN7WYZ2fbRETpXYZcULa mPJvpt+mMKnLdanZ7jRUu2dZTos/9GX0AStqszpT9FSBJkn96JZNBTmMVRA9SffEiA6R SPvFFszUJ4ewvKZW7029b0hxeFLwHIuzX4Lcxxhc+ntQ8FDEgIuvdeAYM6iYS/bUHEUb ucgaFtDeQxpmu8m18BUNUtpWu5X5bXmoVpWGbghatw7F+DIrtldAcySmsO2CWA5EB0Lc wy2Bk2ht9HGAB2tyDQOwisu9hj/e5BJn+AWsEKw4hDvHhOgk9KPMh74F+Gn+SAQ3+T84 jgMA== 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=biB1E7VQfFhALxeshFh3G0/O96X9L1epLBYd8Sfk+Nw=; b=jZebo3HZn+Bak/z17u1IA/xQOgm3c6PEQNNolH6+Y+4W/mdXgVwgKSTxNGyoFqiKXw 1Q2btFbDOUMPwo7YuQLalx0S4d9TC+zysF+Ni7cu1soR7k2he88cHYofmL6Zf2Tupgj/ Ebi4a+3ETmg5TgGX4Tc8KacbUWZ2+yMj5owdHw6Agg3HEUhSMQUMfexmK9bDnNoUy4UN ebjRGIG2mksnOmDHVk03GJRjUJUQuxorj4ckI/rS/Z7/F5o9oqQCvKbpvKDHlqYo47rE EXGvu0cfMlLpEbK0TcgFzWI+gj8Yio3BV7KWpYlzVZteZ/Q6ZGofj3L6vS5sb2hJg1qg Gf0w== X-Gm-Message-State: AOAM533LRnzIVTtWtVmFnP8/Kol/3lrtZ4gz3XB4V6Dc3a1gembzdgp4 zAABJBzRZe49GGQfpj59BY+Kp/IfobgHIg== X-Received: by 2002:a5d:4b81:: with SMTP id b1mr5842762wrt.372.1606850924675; Tue, 01 Dec 2020 11:28:44 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-140-184.adsl.proxad.net. [82.252.140.184]) by smtp.gmail.com with ESMTPSA id n123sm1317922wmn.7.2020.12.01.11.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 11:28:44 -0800 (PST) From: Daniel Lezcano To: rjw@rjwysocki.net Cc: ulf.hansson@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, lukasz.luba@arm.com, Thara Gopinath , Lina Iyer , Ram Chandrasekar , Zhang Rui , Andrew Morton , Andy Shevchenko , Akinobu Mita Subject: [PATCH v4 1/4] units: Add Watt units Date: Tue, 1 Dec 2020 20:27:58 +0100 Message-Id: <20201201192801.27607-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201201192801.27607-1-daniel.lezcano@linaro.org> References: <20201201192801.27607-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. Cc: Thara Gopinath Cc: Lina Iyer Cc: Ram Chandrasekar Cc: Zhang Rui Cc: Lukasz Luba 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)