linux/tools/power/cpupower/utils
Himangi Saraogi 97fa1c5ca6 cpupower: mperf monitor: Correct use of ! and &
In commit ae91d60ba8, a bug was fixed that
involved converting !x & y to !(x & y).  The code below shows the same
pattern, and thus should perhaps be fixed in the same way.

The Coccinelle semantic patch that makes this change is as follows:

// <smpl>
@@ expression E1,E2; @@
(
  !E1 & !E2
|
- !E1 & E2
+ !(E1 & E2)
)
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-07-30 01:57:12 +02:00
..
helpers PM / tools: cpupower: drop negativity check on unsigned value 2014-07-19 21:41:17 +02:00
idle_monitor cpupower: mperf monitor: Correct use of ! and & 2014-07-30 01:57:12 +02:00
builtin.h cpupower: Introduce idle-set subcommand and C-state enabling/disabling 2013-07-05 01:52:19 +02:00
cpufreq-info.c PM / tools: cpupower: add option to display values without round offs 2014-05-07 00:19:06 +02:00
cpufreq-set.c cpupower: Fix sscanf robustness in cpufreq-set 2014-01-08 15:10:39 +01:00
cpuidle-info.c cpupower: Introduce idle-set subcommand and C-state enabling/disabling 2013-07-05 01:52:19 +02:00
cpuidle-set.c cpupower: Introduce idle state disable-by-latency and enable-all 2014-05-17 00:36:36 +02:00
cpupower-info.c cpupower: Remove mc and smt power aware scheduler info/settings 2014-05-17 00:36:37 +02:00
cpupower-set.c cpupower: Remove mc and smt power aware scheduler info/settings 2014-05-17 00:36:37 +02:00
cpupower.c cpupower: If root, try to load msr driver on x86 if /dev/cpu/0/msr is not available 2014-05-17 00:36:36 +02:00
version-gen.sh cpupowerutils: use kernel version-derived version string 2011-07-29 18:35:39 +02:00