From patchwork Fri Oct 7 13:34:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9366107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F37FA60487 for ; Fri, 7 Oct 2016 13:34:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E65F5295F5 for ; Fri, 7 Oct 2016 13:34:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB250295F8; Fri, 7 Oct 2016 13:34:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9FB95295F6 for ; Fri, 7 Oct 2016 13:34:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B62E96EB9D; Fri, 7 Oct 2016 13:34:31 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2C64E6E3DC for ; Fri, 7 Oct 2016 13:34:28 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id 123so3021578wmb.3 for ; Fri, 07 Oct 2016 06:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2UtRF8WD7BWZoURSeilG6otEhCzbmlNf7JgvvdJ8jtM=; b=CZkkTUf4kE76RXnUPgyHBxIOAz/UZ28qEwpKN1v1ZB3SsERJOaloiBo7xUpE/yZd9K RzSc5z+znEzjj+dA/+Yvmmdn9hfGLtZKomFs6HghAO++espRgPR3iJeg707SLCEo1tIl 5cVjPd4bQNTDr9ySZbm3uNNjUbJGhgeU+V6FRVFMQfZ5aqvl5BQmdaMeWXqTVLO7mIum WoHiz1QlMNjp0ldl0uZzBYVbH9yKrD5yV2axtQA6IXeIDFQrusUAaa/rek6l+fjwrEYR Hh3Yiwbyy+DWmvmOJv65O9wa/1IuthR+EYe9qhMfA2udRT5CJGphdR71Jg6hScncLI/P Faug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2UtRF8WD7BWZoURSeilG6otEhCzbmlNf7JgvvdJ8jtM=; b=BgWRN4+4ee4c5sCg3KTIC8D33pklUUex24+AzTcaYYJWX/a1krcoIAoaOCJtCYq3ue YZzjGYnntCsbU+5ulrM54Hq7gEbW5JYsxh1+jAMSnjrLYYMLIJMmtKrAJuHfhqlIvyXN BfHW+DZVCz4QJKu06XSBNLUDPk/aPZ6MaTpkwZJEkFGphGnShPDRTY79rpofOiFxfcgm imkbTbUL5RvW+P/zUJ8LQN4UHvzpmgTyQX+5YkvOIgNFKTCeoOqzgvRywhwRQfKOBgkf Kv1XviMXlKGmQTcav5SQNyAFPNYPSb0hx44XYwznlsfdTjkFvy+ZWBxc64MhMJTncn3/ u85Q== X-Gm-Message-State: AA6/9RkRTAm6iES/a8HgWSuej1CjHMX/OV686hY4BzFTZlB1dvNTUdLoeCNRnnXjm5ggQQ== X-Received: by 10.28.74.199 with SMTP id n68mr30896257wmi.25.1475847266740; Fri, 07 Oct 2016 06:34:26 -0700 (PDT) Received: from localhost.localdomain ([2a02:c7d:9b6d:e300:916a:6cab:ac67:71c2]) by smtp.gmail.com with ESMTPSA id pj2sm19795081wjb.8.2016.10.07.06.34.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Oct 2016 06:34:26 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Fri, 7 Oct 2016 14:34:09 +0100 Message-Id: <1475847252-31580-7-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475847252-31580-1-git-send-email-tvrtko.ursulin@linux.intel.com> References: <1475847252-31580-1-git-send-email-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH 6/9] drm/i915: unsigned int is enough for crtc clock X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 68b3614c6a0b..56726777b4d3 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -582,7 +582,7 @@ static const struct intel_watermark_params i845_wm_info = { * past the watermark point. If the FIFO drains completely, a FIFO underrun * will occur, and a display engine hang could result. */ -static unsigned long intel_calculate_wm(unsigned long clock_in_khz, +static unsigned long intel_calculate_wm(unsigned int clock_in_khz, const struct intel_watermark_params *wm, int fifo_size, int cpp, unsigned int latency_ns)