lkml.org 
[lkml]   [2012]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 2/2] remoteproc: remove the now-redundant kref
    On Sat, May 26, 2012 at 10:36 AM, Ohad Ben-Cohen <ohad@wizery.com> wrote:
    > Now that every rproc instance contains a device, we don't need a
    > kref anymore to maintain the refcount of the rproc instances:
    > that's what device are good with!
    >
    > This patch removes the now-redundant kref, and switches to
    > {get, put}_device instead of kref_{get, put}.
    >
    > We also don't need the kref's release function anymore, and instead,
    > we just utilize the class's release handler (which is now responsible
    > for all memory de-allocations).
    >
    > Cc: Stephen Boyd <sboyd@codeaurora.org>
    > Cc: Fernando Guzman Lugo <fernando.lugo@ti.com>
    > Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
    > ---
    > drivers/remoteproc/remoteproc_core.c | 59 +++++++++++---------------------
    > drivers/remoteproc/remoteproc_virtio.c | 8 ++--
    > include/linux/remoteproc.h | 3 --
    > 3 files changed, 24 insertions(+), 46 deletions(-)

    Applied (after moving the kerneldoc for rproc_class_release() to the
    patch where that function was introduced).


    \
     
     \ /
      Last update: 2012-07-15 12:01    [W:0.023 / U:120.968 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site