From patchwork Thu Apr 12 07:09:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 133189 Delivered-To: patches@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1396677ljb; Thu, 12 Apr 2018 00:09:25 -0700 (PDT) X-Received: by 10.46.5.21 with SMTP id 21mr4833403ljf.78.1523516965276; Thu, 12 Apr 2018 00:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523516965; cv=none; d=google.com; s=arc-20160816; b=j5TbQTH8I0h3suy4qbF5pt5n13jDnwa/r0ePo7+ge9XmwNrrsTDWd9gLMomNVtXZ47 q7rXLPcR8dr0PL4ojDmm1ZVa2RGmFtN24gTZq8abG9rOPxZ59GVU6GJaNuws8U0bLKrA f4lmame8Vb8+RM2FXeXRbCplJ6WXuST0jl2ntdsaZZRyDbntDZAIVpip22iaXmo5fUPT 0wKeaD9y4i1YAGJeFSe2KEjCNJ/Y3PkfVZ/EbhiwTUF5Dok5sw4H7OVg1fdw6l3AIn/O EQSSEHnoUloaKyXrNAVOOT5wArZZg2CDMkJxkjc4gI4rGsB3oGRaSZ1uKFl1DWSm/hBw cMxg== 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=sbkkCw+5sXQMZopvcuqu9/N7MYkQDPDLiUYCv/q2n0M=; b=K1r1gbWkcuTF16CW6T42JoEuUY45w5Na2gC3NUM+i2icXYcGh2MvEgtFq6Zm5PIXJo tjqeI4+PwpNJJ545dh5Ihpy4Zl35mHQoHZReLLZXiLMl3u3VBk1OrUZQSZ4sZu4misoo HzPuItxS/3DZ6R3GV9KnxHGbjoxsdiFCoRXlcBaQk5jdA64FoZw+N0bVXKOtN5UTVxje 8Y18wkKXcft4kUNZih2SgUUlwFYU9A58214B5we80jgFqJonu+KiweRR3YSZ59NGng/y KnfKTxvydHUVgKaaa/PzKjNpcLfFn3kXT4OcvFkAzc7nlrvmWeiR1qNEyvsdr8DL+WLm 4Afg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P900ck0f; 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 j20sor753794lje.7.2018.04.12.00.09.25 for (Google Transport Security); Thu, 12 Apr 2018 00:09:25 -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=P900ck0f; 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=sbkkCw+5sXQMZopvcuqu9/N7MYkQDPDLiUYCv/q2n0M=; b=P900ck0fH8uq0ODgzgzh/vEbqfyIK0XR9MybfujV8IIOSi7MNDPBL8Srak7Lf+Kzxi JRhImi3GhOwIunPAjL9uzMS1cHmoOPbPoYmGAAsp8wtfQ+LcpXVaQHIFSsDvgP/9IEZj 4Osnl2KL4oGnaaa7ZiOToZQ4XB5eUikjEeBxU= 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=sbkkCw+5sXQMZopvcuqu9/N7MYkQDPDLiUYCv/q2n0M=; b=Jeu0suB1hoXD0m3ZYxUk1KfM1tYMWYS0iTYPdFY9Z+wRD9KGxfqMzTJoE+u5H7TpTJ +rcexYigVBWR4IeHiN042GyhSpEG/WWndHxSeejy6CTWTIRQXd0u1qEgEKTymPcKdBny 13/FeOW8VLaXV8V88BNpNKChEiSuk+tHWgj5f/5PgwnZtnuY9ojGkko4kPqTlzXeq1lp 2ZyAWCmbQbJfVOW+Y1lEAPXrul5iJYPeibYOoFIKwXUHc0O2lEG0fV6BokFqT9XU0HNI JIfy72pHVX06PHEIi+JFKEjjfq+wmiyRHtnVh/3oe6gRMjSIXjFVVQfrb7vnBQpUgFxO saqA== X-Gm-Message-State: ALQs6tDUNxxx9ctOB+2tZoaVZdAUW2Dz8s25kkd8roAdsqSuRiRygCGj ropeCaZRvLpZLo+fMUzMxHN1eDpR X-Google-Smtp-Source: AIpwx48WCwgx+Z08GcaATh+wNhKxYgiLrjpx7+U+GE0OC2XI8iplN3T4mpaQhzq3oQjcviDZKaDE7g== X-Received: by 10.46.152.203 with SMTP id s11mr4725657ljj.92.1523516965012; Thu, 12 Apr 2018 00:09:25 -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.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 00:09:24 -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: Thu, 12 Apr 2018 09:09:18 +0200 Message-Id: <1523516959-5761-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 --- 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 55388ab..4132eba 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -137,7 +137,7 @@ static inline void tick_nohz_idle_stop_tick_protected(void) #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_stop_tick(void) { } static inline void tick_nohz_idle_retain_tick(void) { } 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) { }