Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 12 Sep 2002 11:11:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 12 Sep 2002 11:11:32 -0400 Received: from petasus.ch.intel.com ([143.182.124.5]:10415 "EHLO petasus.ch.intel.com") by vger.kernel.org with ESMTP id ; Thu, 12 Sep 2002 11:11:31 -0400 Message-ID: From: "Grover, Andrew" To: "'Soos Peter'" , linux-kernel@vger.kernel.org Subject: RE: APM & ACPI detect Date: Thu, 12 Sep 2002 08:16:05 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 737 Lines: 28 > From: Soos Peter [mailto:sp@osb.hu] > Are there any "official way" to detect that APM or ACPI is active? > > With APM I try it and it works: > > #ifdef CONFIG_APM > #include > #endif > > ... > > #ifdef CONFIG_APM > if (apm_info.disabled >= 0) { > printk(KERN_NOTICE "Real APM support is present.\n"); > } > #endif > > Are there any similar for ACPI? Well there's pm_active, which is 1 if either is on. Is this really what you want? Regards -- Andy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/