Skip to contentSkip to conversation

HPET: Remove spurious HPET busy warning message.

PATCH In review David John 2 participants 2 messages Oct 6, 2008 – Oct 8, 2008

Subsystems (2)
lore
Share & tools
lore

David John

author
#0 lore raw

PATCH 1/1 HPET: Remove spurious HPET busy warning message.

On x86 systems with CONFIG_HPET_TIMER enabled and the HPET driver (drivers/char/hpet.c) compiled in, an incorrect busy message is printed when the driver initializes since the HPET has already been allocated by the core timer code. Remove the warning message.

---
 drivers/char/hpet.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/char/hpet.c +0 -4
index b3f5dbc..454c13b 100644
@@ -874,8 +874,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
 		hdp->hd_address = ioremap(addr.minimum, addr.address_length);
 
 		if (hpet_is_known(hdp)) {
-			printk(KERN_DEBUG "%s: 0x%lx is busy\n",
-				__func__, hdp->hd_phys_address);
 			iounmap(hdp->hd_address);
 			return AE_ALREADY_EXISTS;
 		}
@@ -891,8 +889,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
 						HPET_RANGE_SIZE);
 
 		if (hpet_is_known(hdp)) {
-			printk(KERN_DEBUG "%s: 0x%lx is busy\n",
-				__func__, hdp->hd_phys_address);
 			iounmap(hdp->hd_address);
 			return AE_ALREADY_EXISTS;
 		}
Acked-by on v1 1/1
#1 lore raw

Yes. This printk is not adding much value and tend to get people confused making them think that it is some sort of error. It will be good to get rid of them.

Ingo: Can you pick this patch up into tip?

Thanks,
Venki

Quoted 33 lines · David John

On x86 systems with CONFIG_HPET_TIMER enabled and the HPET driver (drivers/char/hpet.c) compiled in, an incorrect busy message is printed when the driver initializes since the HPET has already been allocated by the core timer code. Remove the warning message.

---
 drivers/char/hpet.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/char/hpet.c +0 -4
index b3f5dbc..454c13b 100644
@@ -874,8 +874,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
                hdp->hd_address = ioremap(addr.minimum, addr.address_length);
 
                if (hpet_is_known(hdp)) {
-                       printk(KERN_DEBUG "%s: 0x%lx is busy\n",
-                               __func__, hdp->hd_phys_address);
                        iounmap(hdp->hd_address);
                        return AE_ALREADY_EXISTS;
                }
@@ -891,8 +889,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
                                                HPET_RANGE_SIZE);
 
                if (hpet_is_known(hdp)) {
-                       printk(KERN_DEBUG "%s: 0x%lx is busy\n",
-                               __func__, hdp->hd_phys_address);
                        iounmap(hdp->hd_address);
                        return AE_ALREADY_EXISTS;
                }