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) { } 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: 133142 Delivered-To: patches@linaro.org Received: by 10.46.84.29 with SMTP id i29csp518204ljb; Wed, 11 Apr 2018 04:01:51 -0700 (PDT) X-Received: by 2002:a19:a60a:: with SMTP id p10-v6mr2687060lfe.41.1523444511131; Wed, 11 Apr 2018 04:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523444511; cv=none; d=google.com; s=arc-20160816; b=kwA5x9yvWbBQWdJwjjn3y4fuSuiEbU6LmZ82YRvRVX08NXKXGKhgcqgs7uaDrxpw+e cX7W7lxGbjuDH2AiffgxcnXjKPnjq7ugkdv7W/0v1DT5DBmd3GKoIm7s/S93yHHWQSrA ZCTrXEuTp6E948dHG1wSPwKwJjl6d71em/sLDf2pBGMY73XAFR2+//3nWozM4Uof6Avr gvUVkiO94KxCYi0vZ/qOJ9Q6Fdgz4HuioMjJKDPt7IAsb3vj0zz9G1ALzuPZacOl8vjV FNHFv8p/PdCK7AVxqDljbhA3iCVqWn9XxlR1k9ITa1xWdxyWzseRJnfGkCTpO8XJDYDy uWHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=m7kxzHcqBlxMzcAEdlJZMZi80ib9gVAbjrFBFakdkYs=; b=k2dhm6Kt5MEA5FwqAlOh0jc7qA0FEQFIRlRLSBB6kJGnKDfYu9+aWRAedbKQTMfJLQ 4BDgt+GudC1j3WFqK2RaT/2usEjUQUfer0P/iTzRLRVoXbBT5euFkpJR6NKDbmGkXN4u boCf0t82F8K6TCshD7KEfdFXwNC5g+EnYvYbqw33iWQynify/6gzRNlFspLQbKjg8PMA gMbQ9z/4z8YEqJ/bxROVN9V0GJiK6BhHEAFmAY6nwy6c3zgpYWyir2wOReaeQGQc5Nk2 QRAFTBcIkvKoMrmK8wgOFdqxRVmQ0dXD+VG56XfXHRn+m5+YYegBb6LbcE+fyTg5a/BW P6ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TiUweALg; 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 f67-v6sor211518lfe.3.2018.04.11.04.01.50 for (Google Transport Security); Wed, 11 Apr 2018 04:01:51 -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=TiUweALg; 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: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=scTyuTQOSYsgsk0YsyBqbyLGPceoe+li/FgHk4aCS2e8PLMLlF+hQNw343Sk+rUP34 S94HJtwZilsyjhuIRkfKCuT7WB6Mji3I+lKF66BQRcl0TRBmC2vHEQJpQvTxHw34xyjB soJqJkesQArheZzv3J8yMbR3v6VM+dWeJZs2bSaa8m95hL9mlOqTl6iqwbrjP8pqUcKC B1noEN+OTJmd0P+PieLKV0DEGaQoWSvrvaC7PPxJz0WESsMmerJu5iPB6txo9lVHifcV bZ7Sju/2LO0a6oVzn0AN9KjTXjgMQB/6vRiGcvknY7gJV2laEJ8hqM1dFfKmUUZhbO00 rsAw== X-Gm-Message-State: ALQs6tCKhvyFXy7xbQdfJzMAUD7dAL8gDNRckhxgWF4N3Gaiv69sUCpH z1K/T9JtkEglvV7wsbDp6gKIzR4H 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) 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.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> 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(-) -- 2.7.4 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) { }