Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8572783imu; Tue, 4 Dec 2018 10:26:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xk9g30djf56+ld75eRh+jU4Darsisb0jzaB8Uj0vZ7exEccN7JX+IAdIcpE54sALMkd343 X-Received: by 2002:a62:a1a:: with SMTP id s26mr21231672pfi.31.1543947969144; Tue, 04 Dec 2018 10:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543947969; cv=none; d=google.com; s=arc-20160816; b=CQujlEF7fzkd8NAAw3bftlDPAKTkZapUyIL3F2Ii++YHxvtPuGlzwUsmYErm4viMKO lbsEh6AmvyZKIU3kXhLsTAkLRgXxUDP4G8QT8h+LLNHNbTnFkun1nc/ChYwDFcvHDbjH 77AOFWO+sFehH2FCdFtxw9MyQrjajGpLD325kE3gUSes/DS92NI/Y728liPEIf9IwztY O5l7VczfAimXcy2+56i2zXjADJNWGNvVagEZt6saqDNAFjFvHTLJfl9jtPs2WiBDKQPu 3FnCnNsD4ae5+vJYO7VTkZwXlZ80K/2fHiFTudKPOh2nC0CbRe4YJQ4s4dvFqJBAU7ir dw+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=1tDa4TmnAvB45d4gQE2F2HXmHf7ihVkSKj+zS+1q9x4=; b=sBg0cghop9A/K56EHZtS9X22MOy2Za1YaTwaw4sB9nCltHHpjntF6CRK5stz6jEPZc WjYPw9jtaX4617CnptYVmuwgTjI98qIXM01RqOK7CWmdYAjUJBNXnH2G3FaiA+JolhqA aN5isjv0fsLXzah5Ci/nwFxEbFgfHc87OLbjru+oBeCFnqVImyb9u5x7PD8zD9j5YUWB KvjlEA1m/1eMR8tTrRXDmBiQzactCb0ChcdxOby+JSXBorpk683sZgfVe1OWMnCrkLh+ n8pdfrl1Ku5dbnt6d4nM6hs2jBRgXd5BeZI8mWDy/Bw0u6+GtpaLz1sFfCLpvOoy887s fQcQ== ARC-Authentication-Results: i=1; mx.google.com; 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 a6si17157964pfo.90.2018.12.04.10.25.52; Tue, 04 Dec 2018 10:26:09 -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; 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 S1726007AbeLDSXs (ORCPT + 99 others); Tue, 4 Dec 2018 13:23:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:41786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725797AbeLDSXs (ORCPT ); Tue, 4 Dec 2018 13:23:48 -0500 Received: from vmware.local.home (unknown [208.91.3.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 60FFE2081B; Tue, 4 Dec 2018 18:23:47 +0000 (UTC) Date: Tue, 4 Dec 2018 13:23:44 -0500 From: Steven Rostedt To: Anders Roxell Cc: Will Deacon , Arnd Bergmann , mingo@redhat.com, Catalin Marinas , Kees Cook , Linux Kernel Mailing List , Linux ARM Subject: Re: [PATCH 3/3] arm64: ftrace: add cond_resched() to func ftrace_make_(call|nop) Message-ID: <20181204132344.2fcf13c3@vmware.local.home> In-Reply-To: References: <20181130150956.27620-1-anders.roxell@linaro.org> <20181203192228.GC29028@arm.com> <20181204005012.11f73df9@vmware.local.home> <20181204111242.GA32596@arm.com> <20181204122627.225befaa@vmware.local.home> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Dec 2018 19:07:16 +0100 Anders Roxell wrote: > > > > + schedulable = !irqs_disabled() & !preempt_count(); > > > > > > Looks suspiciously like a bitwise preemptible() to me! > > > > Ah, thanks. Yeah, that should have been &&. But what did you expect. > > I didn't even compile this ;-) > > > > If it does, then I'll add it. Or take a patch for it ;-) > > I tested your patch. it worked. > > I'll send a patch shortly. > Thanks. Please add a comment above the schedulable test stating that some archs call this with interrupts or preemption disabled, but other archs don't and this can cause a tremendous unneeded latency. -- Steve