Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3914060imu; Fri, 18 Jan 2019 21:29:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN75A6O6QVOqz/rp3fV1dWTWkg8tupfXIKlcl73W0URlsShFHKVnkwB92cQ2cghLPnnd/YNu X-Received: by 2002:a62:8dd9:: with SMTP id p86mr21885931pfk.143.1547875799699; Fri, 18 Jan 2019 21:29:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547875799; cv=none; d=google.com; s=arc-20160816; b=JG0edsH6Up7qrMDUvxWJkqPeBvnTNhxZMzWrHfJKpAhUZO8AewXQ6xChbfvpy2IltN AktfSamKzpJm/Znq8YV41R5oqQM8MCcHLencv+rAJwulxcnvWWDoI1LMy7KZ2AwsqRLC oHLPkGI01tXmm3OeTG5NqrVNLwNO996xviYTtMyoUZQlDYUJGrefMjzn8x1u8nFUYv+0 8mRyB30ng8lYCUdJUzPR93eIhfURPI95ugsCkU5skzn1R7rhTbwK8UEyLZZSYX7R8GGa ty1qssuuvnAldv29zQscCfAeHFoZaQ3m7AUsWMPmA3Wczw5wanoNjysnxVo94XJ14zA5 Oexw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+BQqAME/n96OaDRAvhqrmL+Q8yZyrA9mWoXMS5JE7pE=; b=oWlBmQqUHcKkPl0KYsX3mXEBbOcFV6cb8zG50Ez/OXItXQMbmYwxNNuvvM4297T3yL I79jKe/y+HYat9knQtgDZW01F9y9vVPJ1NL30X3pIEr/TI9zv7d5Gh3rGfCHeXlrlOzD C7BMrJecSucD2PU/4o+m5ZAYoZPMNHLiyFut4HRvCy0sKFzY+e6a2XaHwjs/BA8Z8+2C 9QZU7RqfvE5gX3xrAnQHTykkapzVbTJcvEQCbJ3ncU1QyJRIDFamnVJcRFY/30CXhYLB K66Xn22ULwLt5JG100oJtdhu9J2JwhrVZndrex9tPkuqVYBuLB5q1ediZw+zjZ66Unys HWew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=fP9zCSOI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si5929368plo.254.2019.01.18.21.29.15; Fri, 18 Jan 2019 21:29:59 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=fP9zCSOI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727343AbfASF1H (ORCPT + 99 others); Sat, 19 Jan 2019 00:27:07 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:40286 "EHLO mail-wm1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbfASF1G (ORCPT ); Sat, 19 Jan 2019 00:27:06 -0500 Received: by mail-wm1-f49.google.com with SMTP id f188so6291446wmf.5 for ; Fri, 18 Jan 2019 21:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+BQqAME/n96OaDRAvhqrmL+Q8yZyrA9mWoXMS5JE7pE=; b=fP9zCSOI58Il0IPLCGwoSGtvSya1dK7oL8gdVFU4k+p415AnygBCURviv37BBme5Xu CNWsikmffBocAkY298f4gm7QaEfVr10uNE5cMeLt+3fBjBHBGYS+9/mZ94+Yqp9F2bru L8Ym/yDXLJ3kLHiKBNM7Hrh2vHFmNEAWb10DmhPBsJQGRiFw8lfHERrpIqwLmwCEHmDo 3aSmWY+mGMXPxX87cjvyXgG+sD3bF2d0aky7rNngPY2SZbH93SdTqHm3KBsJ5W1zqi6v RpSMr6BzQJL+dEzKHfF5EWOqfwbacHm0fr1e33D8uPyU9dxkrOPLjWAkutaYQ/jlSLp7 2IJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+BQqAME/n96OaDRAvhqrmL+Q8yZyrA9mWoXMS5JE7pE=; b=HxFYdh6NSsdTUj8PLzhg48Nde8NO0vczY87yr6LrqLZEuRS73Pf9LVCBIAvtiA1FKS 3b5ZhQzvbuxO2PNQDsOMYzh6FO4khfBjOvV9XHXeJJudJtwS5im9vEHHfaGu25V8d9i1 pYfV+xnpnLyKZOmHelsLNqLB+mAk2TkRS40DnU/2mP8bsEkdrzJl6Oi3/vd3SyJT6FQJ lxaDnR++x2B0V0GNQdOSteQaFV9Jl7lS6wifQSjHhMROpWdy9wtABygqvCMuVuI/YevN R+geR2k2Kwzoth9Jkvswqz+WikkGXQX4209bNKOE2UiLxe6u4JEq5swiXpfatt7f4vox 5swA== X-Gm-Message-State: AJcUukfWJaQ6jU4QY/084xcwvbFhAqe7UZLOntNcH5xArpPO+DDe6hkg X9XbUZ2saA7Pw7qQUbhaJTbS9udRe3lS5AIieyw0xw== X-Received: by 2002:a1c:1801:: with SMTP id 1mr19018322wmy.153.1547875624887; Fri, 18 Jan 2019 21:27:04 -0800 (PST) MIME-Version: 1.0 References: <20181227111821.80908-1-anup@brainfault.org> <20181227111821.80908-6-anup@brainfault.org> <20190115155727.GD13095@infradead.org> In-Reply-To: <20190115155727.GD13095@infradead.org> From: Anup Patel Date: Sat, 19 Jan 2019 10:56:53 +0530 Message-ID: Subject: Re: [PATCH v4 5/5] irqchip: sifive-plic: Implement irq_set_affinity() for SMP host To: Christoph Hellwig Cc: Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Atish Patra , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 15, 2019 at 9:27 PM Christoph Hellwig wrote: > > > + if (!force) > > + cpu = cpumask_any_and(mask_val, cpu_online_mask); > > + else > > + cpu = cpumask_first(mask_val); > > Any reason for the inverted test? Okay, I will not use inverted test here. > > Otherwise this looks fine to me: > > Reviewed-by: Christoph Hellwig Thanks, Anup