lkml.org 
[lkml]   [2016]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/5] x86/mbm: Add support for MBM counter overflow handling
On Wed, 10 Feb 2016, Vikas Shivappa wrote:
> +static enum hrtimer_restart mbm_hrtimer_handle(struct hrtimer *hrtimer)
> +{
> + if (list_empty(&cache_groups))
> + goto out;
> +
> + list_for_each_entry(iter, &cache_groups, hw.cqm_groups_entry) {

....

> + }
> + }
> +
> +out:
> + raw_spin_unlock_irqrestore(&cache_lock, flags);
> + mutex_unlock(&cache_mutex);
> +
> + hrtimer_forward_now(hrtimer, ms_to_ktime(MBM_CTR_OVERFLOW_TIME));
> +
> + return HRTIMER_RESTART;

Why is that timer restarted if cache_groups is empty?

Thanks,

tglx

\
 
 \ /
  Last update: 2016-02-24 12:21    [W:0.080 / U:1.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site