summaryrefslogtreecommitdiffstats
path: root/fs/attr.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2010-04-13 22:23:15 +0200
committerIngo Molnar <mingo@elte.hu>2010-05-07 11:31:01 +0200
commita1f2b70a942b8d858a0ab02567da3999b60a99b2 (patch)
tree138457e3edf7d670eb0ad977b18a30be0110a355 /fs/attr.c
parent31fa58af57c41d2912debf62d47d5811062411f1 (diff)
perf, x86: Use weight instead of cmask in for_each_event_constraint()
There may exist constraints with a cmask set to zero. In this case for_each_event_constraint() will not work properly. Now weight is used instead of the cmask for loop exit detection. Weight is always a value other than zero since the default contains the HWEIGHT from the counter mask and in other cases a value of zero does not fit too. This is in preparation of ibs event constraints that wont have a cmask. Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1271190201-25705-7-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/attr.c')
0 files changed, 0 insertions, 0 deletions