From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 12 Sep 2002 04:05:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 12 Sep 2002 04:05:52 -0400 Received: from firewall.osb.hu ([193.224.234.1]:30226 "EHLO firewall") by vger.kernel.org with ESMTP id ; Thu, 12 Sep 2002 04:05:51 -0400 Date: Thu, 12 Sep 2002 10:04:37 +0200 (CEST) From: Soos Peter To: linux-kernel@vger.kernel.org Subject: APM & ACPI detect Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, 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? Thanks, Peter