lkml.org 
[lkml]   [2009]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] perf lock: Implement basic sorting function of perf lock
From
Date
On Sun, 2009-12-20 at 11:56 +0900, Hitoshi Mitake wrote:
> +/* based on kernel/lockdep.c */
> +#define MAX_LOCKDEP_KEYS_BITS 13
> +#define LOCKHASH_BITS (MAX_LOCKDEP_KEYS_BITS - 1)
> +#define LOCKHASH_SIZE (1UL << LOCKHASH_BITS)

Since you're hashing something fundamentally different than lockdep does
I don't think it makes sense to carry either the name or the size along.



\
 
 \ /
  Last update: 2009-12-28 11:21    [W:1.236 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site