From patchwork Wed Apr 11 11:01:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 10335313 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 7BFED6053B for ; Wed, 11 Apr 2018 11:02:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CE7D28896 for ; Wed, 11 Apr 2018 11:02:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 610052889E; Wed, 11 Apr 2018 11:02:12 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDBF028896 for ; Wed, 11 Apr 2018 11:02:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826AbeDKLBy (ORCPT ); Wed, 11 Apr 2018 07:01:54 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:38983 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752244AbeDKLBw (ORCPT ); Wed, 11 Apr 2018 07:01:52 -0400 Received: by mail-lf0-f66.google.com with SMTP id p142-v6so1998711lfd.6 for ; Wed, 11 Apr 2018 04:01:51 -0700 (PDT) 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=m7kxzHcqBlxMzcAEdlJZMZi80ib9gVAbjrFBFakdkYs=; b=TiUweALg5W/lGvVPlQxntf4+o+Q4rayKVKEAZmU+hvFStZmc1V1ukIMo8Vv3rJsBbs OEjRI+mTYLpwy3JPG8uwKcGuzrD9cmFEbzj9srOZzNO74YT7WCjT8/LGs8lt65x+P590 xRK88LjmstXFy52qhlBQr6OtBlxwSr2iVmVQE= 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=m7kxzHcqBlxMzcAEdlJZMZi80ib9gVAbjrFBFakdkYs=; b=Unf8+VsfXKdxA3Dpa/oHOE3JswNyr0UGTfkcdO/HOMudGOhf9CixCE++mAbT8wgxJR knl/uH6Gc35p/115ODo9GqYyr0qeHyUuBd06YQkaA8ZBcWgpkPTr/h9jAdQJcnEFw9tI ABhtFVhjya31GvDieISqTHEsYwWN9DQQRMGtV1UZPOnBFvTvmmkfKNxOgWT8CkzkgyaZ tbZQVYMNys78QUK7HBoALTI0ufT9tQMxV5vSZXgFeuOWlyolBi4SjCGemuMewoO06n8L rIn5qiai1ojvskoicLYiPeEqfYfCfFl4FhzmVOtzvA8EedI1WMoONKVes/FLNehyZlv1 1JWQ== X-Gm-Message-State: ALQs6tDlFXEoAQ5BefTBye2ZeiBoFKcq56PYmTIiyRhYVEPRmpnzCRbj J5Etcey7T6FfpeAHDH/Jo82I7A== X-Google-Smtp-Source: AIpwx4/6y/ed3xAiUf3BexVA6EaIfTlPNEZx0N5zZYm20rxGDIDDEVUrQ4KpgeqDz9PsG/TuHTFOqg== X-Received: by 2002:a19:4d46:: with SMTP id a67-v6mr2729804lfb.36.1523444510729; Wed, 11 Apr 2018 04:01:50 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id f200-v6sm202878lff.35.2018.04.11.04.01.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Apr 2018 04:01:50 -0700 (PDT) From: Ulf Hansson To: Frederic Weisbecker , Ingo Molnar , Thomas Gleixner Cc: "Rafael J . Wysocki" , Ulf Hansson , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] nohz: Align types to bool for tick_nohz_tick_stopped_cpu() Date: Wed, 11 Apr 2018 13:01:33 +0200 Message-Id: <1523444493-12665-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523444493-12665-1-git-send-email-ulf.hansson@linaro.org> References: <1523444493-12665-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The intent was likely to also make the inline version a bool, so let's change this. Fixes: 22ab8bc02a5f ("nohz: Allow to check if remote CPU tick is stopped") Signed-off-by: Ulf Hansson --- include/linux/tick.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/tick.h b/include/linux/tick.h index f9070b9..cb52c38 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -126,7 +126,7 @@ extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time); #else /* !CONFIG_NO_HZ_COMMON */ #define tick_nohz_enabled (0) static inline bool tick_nohz_tick_stopped(void) { return false; } -static inline int tick_nohz_tick_stopped_cpu(int cpu) { return 0; } +static inline bool tick_nohz_tick_stopped_cpu(int cpu) { return false; } static inline void tick_nohz_idle_enter(void) { } static inline void tick_nohz_idle_exit(void) { }