Bug 4972

Summary: thermal polling frequency debug info needs divide by 10
Product: ACPI Reporter: Sanjoy Mahajan (sanjoy)
Component: Power-ThermalAssignee: Konstantin Karasyov (konstantin.karasyov)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: low CC: acpi-bugzilla
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.13-rc4 Subsystem:
Regression: --- Bisected commit-id:
Attachments: Convert deciseconds to seconds for debug output

Description Sanjoy Mahajan 2005-07-30 13:55:23 UTC
Distribution: Debian testing
Hardware Environment: TP 600X
Software Environment:
Problem Description: Two of the thermal.c debugging infos forget to divide the
polling_frequency by 10 to convert to seconds.  Patch attached.

Steps to reproduce:

Turn on some acpi debugging, e.g. echo 0x1F > /proc/acpi/debug_level
Change polling frequency, e.g.

  echo 10 > /proc/acpi/thermal_zone/THM2/polling_frequency

You'll see 100 seconds instead of 10 seconds given in the syslog:

  acpi_thermal-0271 [15] acpi_thermal_set_polli: Polling frequency set to 100
seconds
Comment 1 Sanjoy Mahajan 2005-07-30 13:59:35 UTC
Created attachment 5428 [details]
Convert deciseconds to seconds for debug output
Comment 2 Len Brown 2007-02-15 22:25:04 UTC
applied to acpi-test
Comment 3 Len Brown 2007-03-07 22:51:38 UTC
shipped in 2.6.21-rc1
closed