From patchwork Fri May 10 09:30:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 163844 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2121102ilr; Fri, 10 May 2019 02:31:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn7kc49QEp4tOj5Xg/amDInf3EI8QbEWKykfVkHoHRGckzzKxQx+oqo7/ZMUZUxo8n3WDs X-Received: by 2002:a17:902:4643:: with SMTP id o61mr11351091pld.95.1557480675872; Fri, 10 May 2019 02:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557480675; cv=none; d=google.com; s=arc-20160816; b=UvwJSnIDXJGx9XGUTi9gWxR74/QCESZ0Psco1ION4cGvAa7kmMFMd791B0Zk+eRzjd fFiLDd+DG+YvYcZ4Gnee5b+rG6pQGuWIHih8dh7oz6k4BOWNxzFKQPyTyQ4He4oWa6jn UfAM/Z+Xm4jumbsUq3IW9gDRJW56DROsM4LlXH8/Mgi31XQptFs1AGODv0amENqK0a6P cnzFw0eBkDgulWIIfHy6rRNDD0hkBeuQH++v95IBVLeZS11yKxha+N3m8iNeqiPrxuB6 SWs5ExLL9icJT7BQe2eYdQ0W6cefMUgMspeA6QYZw9o0iGmxYmufIZDMg/3ETo2avr9O Xbjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=rG7F9tGraArKOTbXpfKsFMBx62gfFDGu8tgzYdcViBE=; b=0TmUq9dkXorLkSfGxbhor+n1A0fVM6DaXW2i8C9/P+Xlxf1MkaJ8HF3SWw73BQrvpM zVphAWQk2tI5vigUA28VsAJoDgDaKAb7EzRMhK30p27d6Nt8Apwx2yeCZoDpyO/iILQO uEpAr6X+rjyytBl7Wvli1ggnDjW02dTdN5OLPCqHmQDvOvwE2noeqW2UHcajePCf1giR sRs9JDjGN5ciLOXLYaTKssEwG+5/pRX5xcta20fVQ0wbS1/NgAGOWWFSOtjpAzrnirOR Oe5gQnPjhfAvxdZGSmP29SIzyTGyKLuI9nGsxZsvBPdNVLGdsCFNhY8wnV5YcmWU9CoT lh/A== 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 cp7si5092873plb.14.2019.05.10.02.31.15; Fri, 10 May 2019 02:31:15 -0700 (PDT) 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 S1727291AbfEJJbO (ORCPT + 30 others); Fri, 10 May 2019 05:31:14 -0400 Received: from foss.arm.com ([217.140.101.70]:41110 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726992AbfEJJbN (ORCPT ); Fri, 10 May 2019 05:31:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 85431A78; Fri, 10 May 2019 02:31:13 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6C5A53F738; Fri, 10 May 2019 02:31:12 -0700 (PDT) From: Suzuki K Poulose To: mathieu.poirier@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, Suzuki K Poulose Subject: [PATCH 0/4] coresight: Do not call smp_processor_id from preemptible contexts Date: Fri, 10 May 2019 10:30:59 +0100 Message-Id: <1557480663-16759-1-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have a few places where we call smp_processor_id() from preemptible contexts during the perf buffer handling. We do this to figure out the numa node for the allocation in case the event is not CPU bound. Use numa_node_id() instead in such cases to avoid a splat. Suzuki K Poulose (4): coresight: tmc-etr: Do not call smp_processor_id() from preemptible coresight: tmc-etr: alloc_perf_buf: Do not call smp_processor_id from preemptible coresight: tmc-etf: Do not call smp_processor_id from preemptible coresight: etb10: Do not call smp_processor_id from preemptible drivers/hwtracing/coresight/coresight-etb10.c | 6 ++---- drivers/hwtracing/coresight/coresight-tmc-etf.c | 6 ++---- drivers/hwtracing/coresight/coresight-tmc-etr.c | 13 ++++--------- 3 files changed, 8 insertions(+), 17 deletions(-) -- 2.7.4