]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/events/core.c
perf_counter, x86: rename bitmasks to ->used_mask and ->active_mask
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Apr 2009 14:55:56 +0000 (16:55 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 20:19:36 +0000 (22:19 +0200)
commit43f6201a22dbf1c5abe1cab96b49bd56fa9df8f4
tree5e481766115902221ca1c3fbf8c547831c5fa794
parentab7ef2e50a557af92f4f90689f51fadadafc16b2
perf_counter, x86: rename bitmasks to ->used_mask and ->active_mask

Standardize on explicitly mentioning '_mask' in fields that
are not plain flags but masks. This avoids typos like:

       if (cpuc->used)

(which could easily slip through review unnoticed), while if a
typo looks like this:

       if (cpuc->used_mask)

it might get noticed during review.

[ Impact: cleanup ]

Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1241016956-24648-1-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c