From patchwork Thu Apr 12 07:09:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 133190 Delivered-To: patches@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1396736ljb; Thu, 12 Apr 2018 00:09:28 -0700 (PDT) X-Received: by 10.46.145.212 with SMTP id u20mr5177301ljg.48.1523516968263; Thu, 12 Apr 2018 00:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523516968; cv=none; d=google.com; s=arc-20160816; b=ohiWU12jzVkekEFiR5xFJ1BJubj0o47dgHCdAdzhGyjAZj1NsrZJi7Gz5o8Au6T1yn 2oFdjJiYpgVzAB1ZKRKZMz8YthiqWTsX9EDhWBmHpzosfMSW3QKw1F8JOI7+Jt57xVjD uOr0sRWxoeGpWHba1srwpO7QH9KIGXEXNNlkq5BWaW+16yaZCfrlYmUaODX7o/i6M+nw 7RV07HTW8X3SD86tNPfbsSuKwK1QDar60p6m0GRNeGZJff0u1OBPcUZFoQmpb7nKR3lx GytmffajeQkRrEF/Vbuh84ND6V4tOdFekDaqRDfwoJjPRDiFiXGn0euP+UOo60YYQmOE wmKQ== 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=oCxGPeLqF9gvt3KwurBFTqpE3LEPWRQcgPLqqgsczeY=; b=qT2eyWBfDwUwl29X2YVVHfIroMvwgvl8NslJ5R0Vv/KWkPoCqjT8KWZZcabtFbkObM ugVlZrDrUXeZFoOs+7XrfakXzPjzIZPSCCDz3MRSmKqSjmhE+d/FnL3h+F+1B+jDEZfu pzISusLxtXnNBGjrjgwPVYC4/P8TyGVq2CMnEAcVv7v6iyrg8FMj18e5b/+rsQiLKvxu LTnumdQ5JwPknXZwzJyUliFDoFOrweaGNChkgWb33Hzx9Pw2KljHaH6dPeoaHosAlznB oaexdo55s1aoqc1/P0ReoLZ7Vk5wD6LAiU12MdxH1KNUuGZ/WnystXLBd27iUR7oDNYa mOIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kfKSGpJh; 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 x13sor789562ljj.87.2018.04.12.00.09.28 for (Google Transport Security); Thu, 12 Apr 2018 00:09:28 -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=kfKSGpJh; 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=oCxGPeLqF9gvt3KwurBFTqpE3LEPWRQcgPLqqgsczeY=; b=kfKSGpJhSuKLhsiA6e4GG0jFoT9ODTtmWe2XD5lCqWIn8fsrhChE+FPCkyOBAVRbJN RKArQeiXSfHbFLXOePdpgDodtB3hL0fnHrrfGOl8sf/SNHtYs2ujklIQa3OYhptQCCF8 hrlGjtZ0rrOPpL5nTi33gL6+e8q3kpIWbUggg= 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=oCxGPeLqF9gvt3KwurBFTqpE3LEPWRQcgPLqqgsczeY=; b=ltvFJkjpqwQ5xbNohRnncI4gyRbDJV0ochpunFeJe93Azfn8Kq5KGsj0V9f4NZUX8L 6qH9uEBkUknhJaAxZCZDPrKkxNmoP/bWwd+A/IL8vsv1rPBVpJTkid+zvvEosA1X/Gwr rOpgWGItXK2qVX8Y3Y7GI9s2hFUVOlCJiqHphoSGf2ltvrq3iTG/3Tzoj3u+fQfA9Xur ZDRgAHHzJlyKl5NCh63gPrd3+wiFd12LnxgX/Vwj5qbPVmTmlnPJQyO1gXSUUguot711 UHnPUjo+7+fbjnNM9ZAkbjRINt8Z5V3OUlA8halhR1zE/gbv57/eob3XneDcnv1YHFUS Wu8A== X-Gm-Message-State: ALQs6tA6P26IFnF+j0UuQjqP+Cdy4u/kch9s+YcRgiigez/9m/d3x8ny hDvtw51oJl6IUfu5JeeWXv1UPkrB X-Google-Smtp-Source: AIpwx4/zMnqt+wW6my1YTfGslT8s+tuh8ewvo0LaWX9efkPtr34CzLGskgQDtekTDS2Za7J6NE6Oaw== X-Received: by 10.46.131.86 with SMTP id l22mr4741424ljh.82.1523516968071; Thu, 12 Apr 2018 00:09:28 -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 d86sm480711ljd.45.2018.04.12.00.09.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 00:09:27 -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: Thu, 12 Apr 2018 09:09:19 +0200 Message-Id: <1523516959-5761-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523516959-5761-1-git-send-email-ulf.hansson@linaro.org> References: <1523516959-5761-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 --- Changes in v2: - Rebased on top of Linus' latest master to apply cleanly. --- 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 4132eba..389aa25 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -138,7 +138,7 @@ static inline void tick_nohz_idle_stop_tick_protected(void) #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_stop_tick(void) { } static inline void tick_nohz_idle_retain_tick(void) { } static inline void tick_nohz_idle_restart_tick(void) { }