lkml.org 
[lkml]   [2008]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 9/13] hrtimer: convert sound/ to the new hrtimer apis

    From: Arjan van de Ven <arjan@linux.intel.com>
    Subject: [PATCH] hrtimer: convert sound/ to the new hrtimer apis

    In order to be able to do range hrtimers we need to use accessor functions
    to the "expire" member of the hrtimer struct.
    This patch converts sound/ to these accessors.

    Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
    ---
    sound/drivers/pcsp/pcsp_lib.c | 5 +++--
    1 files changed, 3 insertions(+), 2 deletions(-)

    diff --git a/sound/drivers/pcsp/pcsp_lib.c b/sound/drivers/pcsp/pcsp_lib.c
    index e341f3f..1f42e40 100644
    --- a/sound/drivers/pcsp/pcsp_lib.c
    +++ b/sound/drivers/pcsp/pcsp_lib.c
    @@ -34,7 +34,7 @@ enum hrtimer_restart pcsp_do_timer(struct hrtimer *handle)
    chip->thalf = 0;
    if (!atomic_read(&chip->timer_active))
    return HRTIMER_NORESTART;
    - hrtimer_forward(&chip->timer, chip->timer.expires,
    + hrtimer_forward(&chip->timer, hrtimer_get_expires(&chip->timer),
    ktime_set(0, chip->ns_rem));
    return HRTIMER_RESTART;
    }
    @@ -118,7 +118,8 @@ enum hrtimer_restart pcsp_do_timer(struct hrtimer *handle)
    chip->ns_rem = PCSP_PERIOD_NS();
    ns = (chip->thalf ? PCSP_CALC_NS(timer_cnt) : chip->ns_rem);
    chip->ns_rem -= ns;
    - hrtimer_forward(&chip->timer, chip->timer.expires, ktime_set(0, ns));
    + hrtimer_forward(&chip->timer, hrtimer_get_expires(&chip->timer),
    + ktime_set(0, ns));
    return HRTIMER_RESTART;

    exit_nr_unlock2:
    --
    1.5.5.1


    \
     
     \ /
      Last update: 2008-09-02 01:21    [W:0.027 / U:31.004 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site