From patchwork Wed Apr 11 11:01:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 133141 Delivered-To: patches@linaro.org Received: by 10.46.84.29 with SMTP id i29csp518087ljb; Wed, 11 Apr 2018 04:01:44 -0700 (PDT) X-Received: by 2002:a19:4b43:: with SMTP id y64-v6mr2640373lfa.11.1523444504822; Wed, 11 Apr 2018 04:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523444504; cv=none; d=google.com; s=arc-20160816; b=gMr/knxItMaEgawTJzk2AgFp8q1wyoJBpDMcZdzZbA+JGgzFUE5IUTOgicG+9gWXmU Mm2mZxiA1FLGKhGvhZPHHxcyatQts+8H8E9gbJIyF3hMGXoCVma7bx/qis+ZhIX2qBy7 XQyNkoJT+CiQQWmkuVD6sqzBEdUkKmvKyuhVLRR942rbPOSUtQvUSrpFSKLV4AGlwOSC KVcbo/k9xoGcvWEwcnlqyxGXaqePS/lcyidQBap71zU8m9J+4mdU47iX1TtLJ+1cOWB4 QFx69CNwT3DSNKPhHY86TaHoB/gbGlWQ3xdz3jfEWj5wmg1ee05enrla9POh24shEEk4 KsRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=yptnczDWldHIC8bHqGdPvtrjof6H+SP5w+kzKIcoDFM=; b=szwPQGmo93FJDyJfwhf6Jagb0uFQ9xT5nwXJR0t3tAsMDjqAxK8M5z0AHaed0nhjVK 1570VFCIxjaykvPnrOzgDwrY3MQdmsYSboRz//ynlV6GaOlkREKWIWn8lHfgKkBJTVuY +wW68gqRC9YdflWjMJ4Ir/dHoNxAuM8kov1fI7U49uUNzUMX3Z3cjBhy6OpPRIIv4UZ5 14gxSnrtdgnrBcedeN8IHgkLFiP2ZdZ1Z3rGA9XMEq9vZkwjBEUgonWQISkdYp5NWXqY qxmR3kuIPp1HswRDp/pDeVyJVPtXKspxWpjeHlHCaMXeBWSfpMl7ygxv3VPcaxXxv8EX s0SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N4ydqfT6; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e26-v6sor197167lfc.35.2018.04.11.04.01.44 for (Google Transport Security); Wed, 11 Apr 2018 04:01:44 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N4ydqfT6; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=yptnczDWldHIC8bHqGdPvtrjof6H+SP5w+kzKIcoDFM=; b=N4ydqfT63f3RNzkH5/mzonqLmQLEdtvGGjTZOEAaQIhLa7lg7Gvi7gI56CEQDTmMR2 3hBeXJa39GAMS/zi+lziPMjMshxVHBegvchvjw0vsK6wBwB3R5Yz2KHvNdIJbajpx1LD zoAZzrbH/xfLlSv70nBn7Hh8J/AZP5mioGOhU= 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; bh=yptnczDWldHIC8bHqGdPvtrjof6H+SP5w+kzKIcoDFM=; b=YkIt5tqDI+4oLTxFYsNPQ27NJnOUcOysOjY5Mhc3mLoPzeBd6rJQA0qLeHKPRW04Np NO1B8MboRQR9VXKzfeZUG3yG1KuT587FwAWHhC+yr0pL+GQXTvQX0uugyqcX0gM+c4Q9 ojJRdGHoEnbXNd2HHusw004OxoNxvbzo+0PRL+n9ApgvIIzMCtg6UMBsxivtITFc+MQ9 UC1/IFktK5w4kJDLFAzNyPpVrMlOpY64AcdI1nonyh+Np+YqAzdJaPernP3qmxPLDg/W G5P86g14swPJq4W7PlkSoAdZEgaxhgJGB+ZgQg9sYQY46f5FnWv87cb97ekY1MEaCtnA /5PA== X-Gm-Message-State: ALQs6tDCmQUQtNommdkKGtwf7tR7gj2KSmMlBBhdixTBTVP/skXaAktv 4NOjEmVqO5oydRxe9gArPSQUE5u8 X-Google-Smtp-Source: AIpwx4/yRX0M4EFeTxHLsuV26JYWFRZVlKUKDHyxSVlnoP2wQFCJ9wNshB3OlRa/htdiRzfwaaDNUg== X-Received: by 2002:a19:a395:: with SMTP id m143-v6mr2686447lfe.70.1523444504561; Wed, 11 Apr 2018 04:01:44 -0700 (PDT) Return-Path: 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.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Apr 2018 04:01:43 -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 1/2] nohz: Align types to bool for tick_nohz_tick_stopped() Date: Wed, 11 Apr 2018 13:01:32 +0200 Message-Id: <1523444493-12665-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 The intent was likely to also make the inline version a bool, so let's change this. Fixes: a364298359e7 ("nohz: Convert tick_nohz_tick_stopped() to bool") Signed-off-by: Ulf Hansson --- include/linux/tick.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/include/linux/tick.h b/include/linux/tick.h index 7f8c9a1..f9070b9 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -125,7 +125,7 @@ extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); 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 int tick_nohz_tick_stopped(void) { return 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 void tick_nohz_idle_enter(void) { } static inline void tick_nohz_idle_exit(void) { }