Message ID | 20201116152649.11482-2-daniel.lezcano@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=N9fY=EW=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A928BC5519F for <linux-arm-kernel@archiver.kernel.org>; Mon, 16 Nov 2020 15:35:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 344932076E for <linux-arm-kernel@archiver.kernel.org>; Mon, 16 Nov 2020 15:35:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZFALRkZ4"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="YkZZ1Gvq"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jHKaw16f" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 344932076E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9ajLfZ/nFfdnN+xDxZH/7b+grD3a9BF6KbGeYWpDczI=; b=ZFALRkZ46XdcapGQdJlodho2Kf KBqQ0VjEK+FHuqNA5f4cQSQUO66YkJV+q1BfhPsLt+4x4kxlxSwmMVV5NoInjW07uoYhIcBbFklnz eCWoK1ZmIvU+zeD+dxzPStO76kpOkn1tqpU3ZBORQGnxfsB1QgOuk1tU6L+5EEUTzLO6uagJx+B2Z oYCYWPVNlZN+cf9i3jHpaUAilBw8Ay6MBCZWrL2CXF0XeBhr2dzY85KHBxI6IHAPSfc2QrEWk6duu MccoTOxJC/yqSxYKzXu2WQSCGFhYm+yYF5sH4X8ogCqxXjn9reIM97uycvHMeIXaST0t834HtIe01 fGpFCqiA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kegWZ-0004JB-Cj; Mon, 16 Nov 2020 15:34:35 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kegQV-0001TW-US for linux-arm-kernel@merlin.infradead.org; Mon, 16 Nov 2020 15:28:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=AN+diq6krUutxY4s1BjD5o/2cLxtj1QMMKMF7O1rYVo=; b=YkZZ1Gvq4t7ckiKPrpiYKquqV9 E/FsTUwuFwsG8NM6oQLiJQTyWYSWDl7XNlvkbj7PeMzssWIF895DbEELuDOM4AEzQlbNYmlzZjN/o G2m7vPF1JYu++pOEdFkjhRvCZoM8mZI82TgjwnwhRgtPWYQaFJGE0LO0FBdaOU6M57rbvMiQKQHKn DJg645MoodBXGNYYpTopVVzVz+wHU3qn4weWVFcMX87bQulIrOetBSbtVizmH5h5mjmG1DKIG8Vc5 pW0YSSY+6SprY3pEdBH/WAPOjaUJjwr239I02Uvq3qj5PuKOQkvSGbTh53B2XTxozSZW2ub8UDW/s /+3PXasw==; Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kegPR-0008AU-FG for linux-arm-kernel@lists.infradead.org; Mon, 16 Nov 2020 15:27:15 +0000 Received: by mail-wm1-x343.google.com with SMTP id d142so24105175wmd.4 for <linux-arm-kernel@lists.infradead.org>; 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=eZboDcMU3dFAynz97aJrtOGWqYiv7alPWxKPr4MqvvDiSY1rU76GzRf1UEQ8FLuLhW oVzhprrXG81LLc2VTvrEqLK2pVQjjBUEYaCXOawRErsJbDrJd/N7NGXdv8S2p+bR+072 gScz59/0sQGtqt4OcdTznPJIrfeBHphslTqlwGDbneBihsSWM1lUp+MxPtqqZvILW9pA CiZlesRkmB86N67DZQhvXKEAwEP1hnKta6zt0Z4/NetO+7759OxtnSWAIdFNqgIHL1kU xJnXgWKlV1aHVI6+9wsM/TKSV6EuG+w+3i/mbd+zUsBfiKCWzhC+/Vtw372Od8pBKaiA ezVw== X-Gm-Message-State: AOAM532ZNdGLyU4/mv/MdtA0QT/HVqpaat3DmaRldiOqmm6PAP3KEk6G VCWxWO8BoXTYfeCZUfCqk67/XA== X-Google-Smtp-Source: ABdhPJy6aHvbhszTIpGcG5YaGEh0c4mxwL33CLH0slye4X7gVGiV8ZjagFX66At4zxWvR2lsFI40pQ== 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 <daniel.lezcano@linaro.org> To: rjw@rjwysocki.net 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201116_152713_726882_5B5F0A32 X-CRM114-Status: GOOD ( 10.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: 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 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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)