All of lore.kernel.org
 help / color / mirror / Atom feed
* hp6xx: Test APM_DISABLED bit or definition in hp6x0_apm_interrupt()?
@ 2008-03-27 23:35 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2008-03-27 23:35 UTC (permalink / raw)
  To: sfr; +Cc: linux-laptop

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-27 23:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-27 23:35 hp6xx: Test APM_DISABLED bit or definition in hp6x0_apm_interrupt()? Roel Kluin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.