Message ID | 1537471099-19781-14-git-send-email-mathieu.poirier@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2376170ljw; Thu, 20 Sep 2018 12:18:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZtomH6NYWaVFgXIvz8xABngDIii1lggUfLIYBAzAzK0kbAv3cHf9Our/gE5riCm208FZIw X-Received: by 2002:a17:902:46a4:: with SMTP id p33-v6mr41075901pld.205.1537471125471; Thu, 20 Sep 2018 12:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537471125; cv=none; d=google.com; s=arc-20160816; b=bvPeh+jEq59uQ8QEWan0llw+6ai/vLaAsQbpc+nBOguvZhVz6xqGGZRvMKveL6c6vP h9W8SY79kvkaDORfvTuUIg2ePuJUtGLoul/f6Bxdgbmor9LoX2ABxu03xK2nqLM/pEVO SZukQWcrhh1iYija5iOx2oNsWmftUzCo++Ge1LtZigjT/ixtV7NszikcdzMnFwN8ghfN B80V2YwBTCNVL8zzBFFagnLzJXKOhZoNv19DcsGyVMJXmhUXhGwqDp6H4agPwreA3Qg3 rYWIkRJra/2MDtbi5u1wvWoXeaWtQNyzxRwcxk5w9m6VIqhF/92aE9eLsXsEknGLvUxx 5oTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ivRY1Kh/G5kVwYw1yPcZ49+4DmZqfU/mV71jpWG14bQ=; b=QnXCgSsuILRRlwGng/x4Kw5HGXCq1QB7fG8vn7UvSKyZvDSTWTsVaYMqcWUExRpVJK eAEZ4iRhJuVgtlFL3gr8HCOsbSLyehHiiWkSC6K2DRh8C+F7asfAE7LPRC1zuVINQGw1 GYZj/xgUsDC+8Op6wrJRtQUJVj6S2IDB0fkvnqZ8pBP2OeSSup3SUZ4SPw8N+SQ/jen/ rqy8gfjbFhyEtdb/GkGpgUo+sRrDGB3XGVmIhDTRo9sAizj6WohQSkHejWM8XB/XX82a VdpUtw/aUGx4eKJHywH8+b+klnWp6L890LUrqdToeyJQjnS3uV9TvnebUEIIjaXCoqVz yygQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ettpMG0G; 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 Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i21-v6si580953pgh.53.2018.09.20.12.18.45; Thu, 20 Sep 2018 12:18:45 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ettpMG0G; 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 S2388804AbeIUBDl (ORCPT <rfc822;igor.opaniuk@linaro.org> + 32 others); Thu, 20 Sep 2018 21:03:41 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45616 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388779AbeIUBDk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Sep 2018 21:03:40 -0400 Received: by mail-pg1-f196.google.com with SMTP id t70-v6so71015pgd.12 for <linux-kernel@vger.kernel.org>; Thu, 20 Sep 2018 12:18:41 -0700 (PDT) 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=ivRY1Kh/G5kVwYw1yPcZ49+4DmZqfU/mV71jpWG14bQ=; b=ettpMG0GHid//TOdRz9SLrainVDU2+7rof8lNE013hsFFXx2NFQc+AFLm2o5KTZvHW wlIbNqNqoACmKMcS9U7t6Ml5FaopohdB9FWoqNa1rl4tz5OTYSMuxN/iipKzfNqJOt7O QDy0RwS2Shx7RndcJS3rN/QCjxnoLcwjplc/g= 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=ivRY1Kh/G5kVwYw1yPcZ49+4DmZqfU/mV71jpWG14bQ=; b=S3Ds9SvtIw32ds1YDLZ1jytdyy3NX8pw6FQLU7YRaYWhwICQZ5w+wX9qCQCM9N9DdT rZWSmeKm68dM63HDxZdJh9ESo14QWUmzysj6sJ1Ioh61iL7rQ4nHwjVK1lHLYeWFqrfE tRNyOwwhKkXU4xHNglNLjqxHYi712YnSdcd8GxCVypdhaNZpof38TubSbJHZss7BoASq 87oBGbmrGcWGsBPT1LKKeJyE5teKAk5AWxFmFTaO43BLK2Cog18QWIm5sFwcOtitf5bs ApRGDRQCeLxzoR3ku2P5nvfeVVXHIK17rWD5b9TMZOB13ch0O8UYaWXRLV4XlN43t9Lk VQGw== X-Gm-Message-State: APzg51D0rgeZ+ak0633xX1Ds2rLy9of6LHioDrAlDJmVfkVGTEwbb5rD +p36etb1kB5DGC41iBji+H5Thg== X-Received: by 2002:a63:d74f:: with SMTP id w15-v6mr38336095pgi.306.1537471121123; Thu, 20 Sep 2018 12:18:41 -0700 (PDT) Received: from localhost.localdomain ([209.121.128.187]) by smtp.gmail.com with ESMTPSA id k13-v6sm4424443pgf.37.2018.09.20.12.18.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Sep 2018 12:18:40 -0700 (PDT) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 13/44] coresight: perf: Avoid unncessary CPU hotplug read lock Date: Thu, 20 Sep 2018 13:17:48 -0600 Message-Id: <1537471099-19781-14-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537471099-19781-1-git-send-email-mathieu.poirier@linaro.org> References: <1537471099-19781-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
coresight: next v4.19-rc4
|
expand
|
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index 6338dd180031..6beb662d230c 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c @@ -161,15 +161,12 @@ static void *alloc_event_data(int cpu) if (!event_data) return NULL; - /* Make sure nothing disappears under us */ - get_online_cpus(); mask = &event_data->mask; if (cpu != -1) cpumask_set_cpu(cpu, mask); else cpumask_copy(mask, cpu_online_mask); - put_online_cpus(); /* * Each CPU has a single path between source and destination. As such