From patchwork Thu Mar 9 11:45:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 95108 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp318768qgd; Thu, 9 Mar 2017 03:45:57 -0800 (PST) X-Received: by 10.99.127.27 with SMTP id a27mr12982020pgd.87.1489059957358; Thu, 09 Mar 2017 03:45:57 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si6219661pgc.376.2017.03.09.03.45.57; Thu, 09 Mar 2017 03:45:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932255AbdCILpu (ORCPT + 25 others); Thu, 9 Mar 2017 06:45:50 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:35783 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932217AbdCILpq (ORCPT ); Thu, 9 Mar 2017 06:45:46 -0500 Received: by mail-pf0-f177.google.com with SMTP id j5so28041056pfb.2 for ; Thu, 09 Mar 2017 03:45:45 -0800 (PST) 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 :in-reply-to:references; bh=Z0f+ZC9K/bV9q6oQ+xhoCRZZqKdX+12WD6C7/ocPsSs=; b=NFy5T/Ymk2L1hBqgDHaXksQ6ytVhKx7t+WpY1BPfntwaQF1HuRla0qgtdSHbo9eZDj a+MFcaiTyJzME3f5FIpZlUXB0O2nzvrZvX7VtcNvTqvUVJVIQt01j1lfvAarB/m7JKgD ZV4o4R7ju3xkF6I8bTpF1civJBGvLXh4Fb628= 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:in-reply-to:references; bh=Z0f+ZC9K/bV9q6oQ+xhoCRZZqKdX+12WD6C7/ocPsSs=; b=hdPEjAGJSizbv9Hi8K4PBYfFa50OBDX52hZL69ijzGoFfjSqG1HDvmBon3sjUgGylE XloSAABe43KiyZ67QqTav78LJouZ6LXO8rhbvYEWvAU3UCJ7qhuXkqYPLxLg8HlOlZZy DzCiK9jJWMpAoWQnMzS06vzygOxkEwmK2GboXYnK1ekEMNALR7ZWswO9T0QTPTZyFzmW 1x6nFfebxSE2wcS/TLmzRiof/FaWTyIhsEayEEU3PSGhxQhGdfYayBeV8qkOjDC61U2W egXyOdFzSfCQeWJBv4Ox7wVrgel9CfiCm80QXTAQ0sr33mq46PSJRYfkMiH/uYdK2jHT p1lQ== X-Gm-Message-State: AMke39lcssaJ1FaVynKPD7ecVnQpazkYVx4TprtMHsyWC+cfKmyCE5djZFH3VUzP5LAEJqP4 X-Received: by 10.98.196.221 with SMTP id h90mr13535216pfk.149.1489059945230; Thu, 09 Mar 2017 03:45:45 -0800 (PST) Received: from localhost ([122.171.239.200]) by smtp.gmail.com with ESMTPSA id c11sm12097942pfe.68.2017.03.09.03.45.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 03:45:44 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Ingo Molnar , Peter Zijlstra Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , smuckle.linux@gmail.com, juri.lelli@arm.com, Morten.Rasmussen@arm.com, patrick.bellasi@arm.com, eas-dev@lists.linaro.org, Viresh Kumar Subject: [RFC 2/9] irq_work: add irq_work_queue_on for !CONFIG_SMP Date: Thu, 9 Mar 2017 17:15:12 +0530 Message-Id: <85403db254e26655d608137d7df49ebf3aade0c3.1489058244.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steve Muckle Having irq_work_queue_on() available for !CONFIG_SMP can make some call sites cleaner. Signed-off-by: Steve Muckle Signed-off-by: Viresh Kumar --- include/linux/irq_work.h | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.7.1.410.g6faf27b diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h index 47b9ebd4a74f..0195c3502d6b 100644 --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h @@ -1,6 +1,7 @@ #ifndef _LINUX_IRQ_WORK_H #define _LINUX_IRQ_WORK_H +#include #include /* @@ -36,6 +37,12 @@ bool irq_work_queue(struct irq_work *work); #ifdef CONFIG_SMP bool irq_work_queue_on(struct irq_work *work, int cpu); +#else +static inline bool irq_work_queue_on(struct irq_work *work, int cpu) +{ + BUG_ON(cpu != 0); + return irq_work_queue(work); +} #endif void irq_work_tick(void);