Re: [PATCH] remtoteproc: Export notification id range

From: Ohad Ben-Cohen
Date: Wed Sep 12 2012 - 03:31:00 EST


Hi Sjur,

On Mon, Sep 3, 2012 at 4:48 PM, <sjur.brandeland@xxxxxxxxxxxxxx> wrote:
> diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
> index d5c2dbf..00e1674 100644
> --- a/drivers/remoteproc/remoteproc_core.c
> +++ b/drivers/remoteproc/remoteproc_core.c
> @@ -215,6 +215,9 @@ int rproc_alloc_vring(struct rproc_vdev *rvdev, int i)
> return ret;
> }
>
> + /* Store largest notifyid */
> + rproc->max_notifyid = max(rproc->max_notifyid, notifyid);

For completeness, I think we probably also want to update max_notifyid
when a notifyid is removed (i.e. on rproc_free_vring).

Thanks,
Ohad.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/