lockstat: repair erronous contention statistics

Fix bad contention counting in /proc/lock_stat.

/proc/lockstat tries to gather per-ip contention
statistics per-lock. This was failing due to
a garbage per-ip index selector being used.

Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by Joe Korty and committed by Ingo Molnar 04148b73 2189459d

+1 -1
+1 -1
kernel/lockdep.c
··· 3029 3029 3030 3030 stats = get_lock_stats(hlock_class(hlock)); 3031 3031 if (point < ARRAY_SIZE(stats->contention_point)) 3032 - stats->contention_point[i]++; 3032 + stats->contention_point[point]++; 3033 3033 if (lock->cpu != smp_processor_id()) 3034 3034 stats->bounces[bounce_contended + !!hlock->read]++; 3035 3035 put_lock_stats(stats);