lkml.org 
[lkml]   [2015]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86/spinlocks: Fix regression in spinlock contention detection
On Tue, May 05, 2015 at 04:08:22PM +0530, Raghavendra K T wrote:
> ================
> #include <stdio.h>
>
> #define LOCK_INC 2

Note that to be completely identical to the kernel code you should've
written:

#define LOCK_INC ((unsigned int)2)

as per:

#define TICKET_LOCK_INC ((__ticket_t)__TICKET_LOCK_INC)




\
 
 \ /
  Last update: 2015-05-05 13:41    [W:0.157 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site