lkml.org 
[lkml]   [2009]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/5] hw-breakpoints: Arbitrate access to pmu following registers constraints
On Thu, Sep 10, 2009 at 07:41:38AM -0700, Daniel Walker wrote:
> On Thu, 2009-09-10 at 10:29 +0200, Frederic Weisbecker wrote:
>
> > +static unsigned int max_task_bp_pinned(int cpu)
> > {
> > - if (atomic_inc_return(&bp_slot) == HBP_NUM) {
> > - atomic_dec(&bp_slot);
> > + int i;
> > + unsigned int *tsk_pinned = per_cpu(task_bp_pinned, cpu);
> >
> > - return -ENOSPC;
> > + for (i = HBP_NUM -1; i >= 0; i--) {
> > + if (tsk_pinned[i] > 0)
> > + return i + 1;
> > }
>
> One checkpatch error in the code above..
>
> ERROR: need consistent spacing around '-' (ctx:WxV)
> #206: FILE: kernel/hw_breakpoint.c:81:
> + for (i = HBP_NUM -1; i >= 0; i--) {
> ^
>
> Daniel


Oops, I'll fix that too, thanks.



\
 
 \ /
  Last update: 2009-09-10 20:57    [W:0.058 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site