Skip to content

Commit 9261461

Browse files
committed
ACPI: delete obsolete "bus master activity" proc field
Linux-2.6.29 deleted the legacy ACPI idle handler, leaving the CPU_IDLE handler, which does not track bus master activity. So delete the unused bm_activity field -- it is confusing to print an always zero value. This patch could break programs that parse /proc/acpi/processor/*/power, since it deletes this line from that file: bus master activity: 00000000 http://bugzilla.kernel.org/show_bug.cgi?id=13145 is not fixed by this patch, but provoked this patch. Signed-off-by: Len Brown <len.brown@intel.com>
1 parent a71e491 commit 9261461

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎drivers/acpi/processor_idle.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,11 +662,9 @@ static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset)
662662

663663
seq_printf(seq, "active state: C%zd\n"
664664
"max_cstate: C%d\n"
665-
"bus master activity: %08x\n"
666665
"maximum allowed latency: %d usec\n",
667666
pr->power.state ? pr->power.state - pr->power.states : 0,
668-
max_cstate, (unsigned)pr->power.bm_activity,
669-
pm_qos_requirement(PM_QOS_CPU_DMA_LATENCY));
667+
max_cstate, pm_qos_requirement(PM_QOS_CPU_DMA_LATENCY));
670668

671669
seq_puts(seq, "states:\n");
672670

‎include/acpi/processor.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ struct acpi_processor_power {
8484
struct acpi_processor_cx *state;
8585
unsigned long bm_check_timestamp;
8686
u32 default_state;
87-
u32 bm_activity;
8887
int count;
8988
struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];
9089
int timer_broadcast_on_state;

0 commit comments

Comments
 (0)