From patchwork Thu May 4 16:58:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9712323 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 81BE26020B for ; Thu, 4 May 2017 16:58:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74633284D1 for ; Thu, 4 May 2017 16:58:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6952C28613; Thu, 4 May 2017 16:58:27 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 7A873284D1 for ; Thu, 4 May 2017 16:58:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D1D016E53D; Thu, 4 May 2017 16:58:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.17.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9EDF86E53D; Thu, 4 May 2017 16:58:24 +0000 (UTC) Received: from [192.168.1.2] ([92.228.166.245]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MCIqT-1dEseW0Muv-0094dy; Thu, 04 May 2017 18:58:17 +0200 Subject: [PATCH 6/9] drm/i915: Add spaces for better code readability From: SF Markus Elfring To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Chris Wilson , Daniel Vetter , David Airlie , Jani Nikula References: <39c8a155-cf89-1aa5-9ca6-4e9ccf3aa602@users.sourceforge.net> Message-ID: Date: Thu, 4 May 2017 18:58:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <39c8a155-cf89-1aa5-9ca6-4e9ccf3aa602@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:OUb+g246GtHRG2oFhSQ05MWpiUDKHeUMe6+BIu3gTjtOr16I6IM Td7P5U2Z+yMCzwbbZtENFRHgOr2C/nDr0csPi/3a01kUeyY6ySLrdQS2XdKHpuS2bgI+0cN RmAoFcWSyONQ3tBcbZ6039jK5cDqoAIe79DUFpxVkmrIo675ktT9i6oNHo4oKLO6AnwtMRS oCAZUaJoV13Ch0qsrP/Yg== X-UI-Out-Filterresults: notjunk:1; V01:K0:pRYGfJPdHaI=:o9lFpEFWXAPl2BxCT8wFpO 7Shsq5qnzNdU9O55ZtkSZlRRZZXEOJGu1auEk+4IF8fvTIjscqUDv+HJQy6BpWJCyQRLkiN/x JIIg4yw3Kn1YKak0fZ5DgjrTNfroTfb00UOyrIIDK2Z9FCGj/vOBJ0luwnqNycmzh0Ga7J0pG Afa1tsqk7TX5G0QvZmb8gimeV03gViDjOk3p5Z9qotevzDkWA1FBTq0YdwdPWn5CcoX0tESRT 9g0FjsN1zAysFo/L15R2SYz2za55erG/o1dIh0ZPeW2XqBK1Azwur5ev2KpLEWAVpuGz3b0YH MF4PfGwP0DLyfktQMYcVOtZdr4GgKWF/MyelXXx0cDagm+L2HLjpC6i9JH6qCpXHYTAX3MHp4 Vj+u5pSEWMdLWboi0ax05/vVDy3cgDc1mvrMPntnz6b0EnklXeqPuymukabYkOUQq+3SpDxon XToc6RZeFFaJ7R+VtFHt04GbMIMwK+oI4ZX0RShZJvhOHQ/887SCsF0dDYXhSJULNDO69HSrh JEOYdUMpmo58VyEDoxitlOjbuIzDrb4OQNMlIliNsTIyo+Y88qV2cQUZcHXjBtRI1rJ4YF7Zn uixTRpUComdjaLLJ/e9LZiV+krbwA1GXaIxNL+T87FuwbUEfYn0t2/SBRDMu0KRSmCcxNaS+G Jw01QroQDFbK/wDLWYJmKDcnRHKKIKau+Ym3urb/3FJEQe7h9c9KVkCiL5BuKKw9ci4lvoGD7 t/DBWeMzSwzVYGNC0CEpO2ILUrq4lQDXUNpr50o8rI2TOUZ7LtYLzzrc+o7dWzda6Slwby6Se mY6yeHCkbVGsG/4zcPNZ+LYuzxMtw== Cc: kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 4 May 2017 14:04:38 +0200 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/gpu/drm/i915/i915_debugfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index d9c699d7245e..6f3119d40c50 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -2358,7 +2358,7 @@ static int i915_llc(struct seq_file *m, void *data) seq_printf(m, "LLC: %s\n", yesno(HAS_LLC(dev_priv))); seq_printf(m, "%s: %lluMB\n", edram ? "eDRAM" : "eLLC", - intel_uncore_edram_size(dev_priv)/1024/1024); + intel_uncore_edram_size(dev_priv) / 1024 / 1024); return 0; } @@ -4502,7 +4502,7 @@ static void gen9_sseu_device_status(struct drm_i915_private *dev_priv, { int s_max = 3, ss_max = 4; int s, ss; - u32 s_reg[s_max], eu_reg[2*s_max], eu_mask[2]; + u32 s_reg[s_max], eu_reg[2 * s_max], eu_mask[2]; /* BXT has a single slice and at most 3 subslices. */ if (IS_GEN9_LP(dev_priv)) { @@ -4512,8 +4512,8 @@ static void gen9_sseu_device_status(struct drm_i915_private *dev_priv, for (s = 0; s < s_max; s++) { s_reg[s] = I915_READ(GEN9_SLICE_PGCTL_ACK(s)); - eu_reg[2*s] = I915_READ(GEN9_SS01_EU_PGCTL_ACK(s)); - eu_reg[2*s + 1] = I915_READ(GEN9_SS23_EU_PGCTL_ACK(s)); + eu_reg[2 * s] = I915_READ(GEN9_SS01_EU_PGCTL_ACK(s)); + eu_reg[2 * s + 1] = I915_READ(GEN9_SS23_EU_PGCTL_ACK(s)); } eu_mask[0] = GEN9_PGCTL_SSA_EU08_ACK | @@ -4547,8 +4547,8 @@ static void gen9_sseu_device_status(struct drm_i915_private *dev_priv, sseu->subslice_mask |= BIT(ss); } - eu_cnt = 2 * hweight32(eu_reg[2*s + ss/2] & - eu_mask[ss%2]); + eu_cnt = 2 * hweight32(eu_reg[2 * s + ss / 2] & + eu_mask[ss % 2]); sseu->eu_total += eu_cnt; sseu->eu_per_subslice = max_t(unsigned int, sseu->eu_per_subslice,