The most noticeable part of this is that the run_task_queue fix should
[davej-history.git] / arch / i386 / kernel / acpi.c
blobbecbe8840719f09826de3e332b74ba5af4c4dee0
1 /*
2 * acpi.c - Linux ACPI arch-specific functions
4 * Copyright (C) 1999-2000 Andrew Henroid
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * Changes:
23 * Arnaldo Carvalho de Melo <acme@conectiva.com.br> - 2000/08/31
24 * - check copy*user return
25 * - get rid of check_region
26 * - get rid of verify_area
27 * Arnaldo Carvalho de Melo <acme@conectiva.com.br> - 2000/09/28
28 * - do proper release on failure in acpi_claim_ioports and acpi_init
29 * Andrew Grover <andrew.grover@intel.com> - 2000/11/13
30 * - Took out support for user-level interpreter. ACPI 2.0 changes preclude
31 * its maintenance.
34 #include <linux/config.h>
35 #include <linux/module.h>
36 #include <linux/init.h>
37 #include <linux/pm.h>
39 #define _LINUX
40 #include <linux/acpi.h>
41 /* Is there a better way to include this? */
42 #include <../drivers/acpi/include/acpi.h>
44 ACPI_PHYSICAL_ADDRESS
45 acpi_get_rsdp_ptr()
47 ACPI_PHYSICAL_ADDRESS rsdp_phys;
49 if(ACPI_SUCCESS(acpi_find_root_pointer(&rsdp_phys)))
50 return rsdp_phys;
51 else
52 return 0;