Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965594AbbD1M23 (ORCPT ); Tue, 28 Apr 2015 08:28:29 -0400 Received: from mail-oi0-f47.google.com ([209.85.218.47]:33990 "EHLO mail-oi0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965465AbbD1M21 (ORCPT ); Tue, 28 Apr 2015 08:28:27 -0400 MIME-Version: 1.0 In-Reply-To: <1429742451-11465-2-git-send-email-mathieu.poirier@linaro.org> References: <1429742451-11465-1-git-send-email-mathieu.poirier@linaro.org> <1429742451-11465-2-git-send-email-mathieu.poirier@linaro.org> Date: Tue, 28 Apr 2015 14:28:26 +0200 Message-ID: Subject: Re: [PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver From: Linus Walleij To: Mathieu Poirier Cc: Greg KH , "linux-arm-kernel@lists.infradead.org" , "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Kaixu Xia , Chunyan Zhang Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1135 Lines: 32 On Thu, Apr 23, 2015 at 12:40 AM, Mathieu Poirier wrote: > From: Pratik Patel > > This driver manages the CoreSight ETMv4 (Embedded Trace Macrocell) IP block > to support HW assisted tracing on ARMv7 and ARMv8 architectures. > > Signed-off-by: Pratik Patel > Signed-off-by: Kaixu Xia > Signed-off-by: Mathieu Poirier (...) > +/* The number of ETMv4 currently registered */ > +static int etm4_count; > +static struct etmv4_drvdata *etmdrvdata[NR_CPUS]; Don't you need a mutex or something around etm4_count so as to protect it? You could also make it an atomic. Also why is it a signed int ... unsigned int? I know, lame comments, the runtime PM stuff looks perfect now, someone had a refcount comment but it's doing the right thing. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/