Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753290AbdGFHqw (ORCPT ); Thu, 6 Jul 2017 03:46:52 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34881 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbdGFHqu (ORCPT ); Thu, 6 Jul 2017 03:46:50 -0400 From: Ganesh Mahendran To: linux-kernel@vger.kernel.org, corbet@lwn.net, mingo@kernel.org, peterz@infradead.org, linux-doc@vger.kernel.org Cc: Ganesh Mahendran Subject: [PATCH] use macro SHIFT instead of hard code 32 Date: Thu, 6 Jul 2017 15:46:41 +0800 Message-Id: <1499327201-4805-1-git-send-email-opensource.ganesh@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 32 32 is already defined as macro SHIFT, so it's better to use macro SHIFT Signed-off-by: Ganesh Mahendran --- Documentation/scheduler/sched-pelt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/scheduler/sched-pelt.c b/Documentation/scheduler/sched-pelt.c index e421913..726cb31 100644 --- a/Documentation/scheduler/sched-pelt.c +++ b/Documentation/scheduler/sched-pelt.c @@ -22,7 +22,7 @@ void calc_runnable_avg_yN_inv(void) printf("static const u32 runnable_avg_yN_inv[] = {"); for (i = 0; i < HALFLIFE; i++) { - x = ((1UL<<32)-1)*pow(y, i); + x = ((1UL< -1) -- 1.9.1