Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1888453imj; Sun, 10 Feb 2019 12:45:02 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibi7bubCDiDrXTVgUZOG0oJ0zdGdPWIkwSmUUDWzZp+RdkC0E7QtgayzPoCeWWp4GsUi0SL X-Received: by 2002:a17:902:e3:: with SMTP id a90mr34498187pla.82.1549831502591; Sun, 10 Feb 2019 12:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549831502; cv=none; d=google.com; s=arc-20160816; b=JiWho4oM6ZoUTbZMeWPkakUhN/m4kga+U/fYrhdxhRdi4xNAM1XgjGOf26bAnr1DSE Mm7Fk0u7W/xndQmREpCx3g79rzT0DzzbsRCCGZZFL+EYU3QwMdtDQkNHyVorEgAz3P8J AXvfiUW/wRn5OJBvn014/OqTV2vfBwjiR5SDDBpCknHR/XJeG0TfdjuhgjfbUOD58xsO +iyRajr1Dgobz9AHRlFlHU+N7IrzvFBbkG6hqpmC7Km0W6zfv3Cw1NjbImE9X1x87r9u ueiVtmV8HhtiiBT3iQyKd5E+WaYDzZarv7d3ciQNJix/Pzc7JV9CvAqZn9XyCVTcxj/L qMjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=RbigD9/x7sI5by7g9i+7rzYhpwKErQNcSQ1E4OfxocM=; b=UNHDA7MA9vnS3TkwAF+9lZ+NHtIePBLovpb7lNnXsdVKRNqptPxCjBnWxp5STzRLGD g+O0FElAOrOsS1kcT+DLhhj+PQyF1CGLtOA4Z6owgZLFr4uw5Vs3+ImDP5D735EksNRV NXyj7lwnwD85o951Xu7eqtMIqKqG+Udo+s/3F4xQqWTtqUOiYmfnKGatn36AdOJfyBZl D11391urN0Uu9FvE92Fl6LRRo/ljiYW0LhyTtnqhJ7JYr0fx+9ExC/SQRhK8XwpseFed imOmsiyTlZS8rmHTheBXxb37DSKdEM+cetqKHRBkUyJqrI8KWCDjVH/F/7f8VO2l5lhe 1hzw== 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 j21si8399193pfn.277.2019.02.10.12.44.46; Sun, 10 Feb 2019 12:45:02 -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 S1726610AbfBJUoK (ORCPT + 99 others); Sun, 10 Feb 2019 15:44:10 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:37350 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfBJUoK (ORCPT ); Sun, 10 Feb 2019 15:44:10 -0500 Received: from p5492e0d8.dip0.t-ipconnect.de ([84.146.224.216] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gsvxO-0000xu-QD; Sun, 10 Feb 2019 21:44:07 +0100 Date: Sun, 10 Feb 2019 21:44:06 +0100 (CET) From: Thomas Gleixner To: Robin Murphy cc: will.deacon@arm.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com, peterz@infradead.org, bigeasy@linutronix.de Subject: Re: [PATCH 3/5] perf/arm-ccn: Fix CPU hotplug race avoidance In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 4 Feb 2019, Robin Murphy wrote: > /* Pick one CPU which we will use to collect data from CCN... */ > - cpumask_set_cpu(get_cpu(), &ccn->dt.cpu); > + cpus_read_lock(); > + ccn->dt.cpu = smp_processor_id(); Again raw_smp_processor_id() Thanks, tglx