[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87bnckjfce.fsf@ashishki-desk.ger.corp.intel.com>
Date: Wed, 30 Sep 2015 14:50:41 +0300
From: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
To: Mathieu Poirier <mathieu.poirier@...aro.org>,
gregkh@...uxfoundation.org, a.p.zijlstra@...llo.nl,
acme@...nel.org, mingo@...hat.com, corbet@....net
Cc: adrian.hunter@...el.com, zhang.chunyan@...aro.org,
mike.leach@....com, tor@...com, al.grant@....com,
pawel.moll@....com, linux-arm-kernel@...ts.infradead.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH 15/20] coresight: etm-perf: implementing 'setup_aux()' API
Mathieu Poirier <mathieu.poirier@...aro.org> writes:
> +static void *etm_setup_aux(int cpu, void **pages,
> + int nr_pages, bool overwrite)
> +{
> + struct coresight_device *csdev;
> +
> + if (cpu == -1)
> + cpu = smp_processor_id();
> +
> + csdev = per_cpu(csdev_sink, cpu);
> + if (!csdev)
> + return NULL;
> +
> + return sink_ops(csdev)->setup_aux(csdev, cpu, pages,
> + nr_pages, overwrite);
Is it guaranteed that this sink would always have .setup_aux()?
Regards,
--
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists