hp6xx: Test APM_DISABLED bit or definition in hp6x0_apm_interrupt()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



from arch/sh/boards/hp6xx/hp6xx_apm.c:78

static irqreturn_t hp6x0_apm_interrupt(int irq, void *dev)
{
	if (!APM_DISABLED)
		apm_queue_event(APM_USER_SUSPEND);

	return IRQ_HANDLED;
}

shouldn't that be something like

if (!(apm_info.bios.flags & APM_DISABLED))

considering that APM_DISABLED is defined in include/linux/apm_bios.h:153: 
#define APM_DISABLED            0x01

--
To unsubscribe from this list: send the line "unsubscribe linux-laptop" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux ACPI]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]
  Powered by Linux