forked from Minki/linux
Merge branches 'release' and 'fluff' into release
Conflicts: drivers/acpi/scan.c include/linux/acpi.h Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
commit
a733a5da97
@ -615,8 +615,6 @@ int acpi_register_gsi(u32 gsi, int triggering, int polarity)
|
||||
IOSAPIC_LEVEL);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_register_gsi);
|
||||
|
||||
void acpi_unregister_gsi(u32 gsi)
|
||||
{
|
||||
if (acpi_irq_model == ACPI_IRQ_MODEL_PLATFORM)
|
||||
@ -625,8 +623,6 @@ void acpi_unregister_gsi(u32 gsi)
|
||||
iosapic_unregister_intr(gsi);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_unregister_gsi);
|
||||
|
||||
static int __init acpi_parse_fadt(struct acpi_table_header *table)
|
||||
{
|
||||
struct acpi_table_header *fadt_header;
|
||||
|
@ -78,7 +78,6 @@ int acpi_ht __initdata = 1; /* enable HT */
|
||||
int acpi_lapic;
|
||||
int acpi_ioapic;
|
||||
int acpi_strict;
|
||||
EXPORT_SYMBOL(acpi_strict);
|
||||
|
||||
u8 acpi_sci_flags __initdata;
|
||||
int acpi_sci_override_gsi __initdata;
|
||||
@ -490,8 +489,6 @@ int acpi_register_gsi(u32 gsi, int triggering, int polarity)
|
||||
return irq;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_register_gsi);
|
||||
|
||||
/*
|
||||
* ACPI based hotplug support for CPU
|
||||
*/
|
||||
|
@ -68,26 +68,28 @@ config ACPI_PROCFS
|
||||
|
||||
Say N to delete /proc/acpi/ files that have moved to /sys/
|
||||
config ACPI_PROCFS_POWER
|
||||
bool "Deprecated power /proc/acpi folders"
|
||||
bool "Deprecated power /proc/acpi directories"
|
||||
depends on PROC_FS
|
||||
default y
|
||||
---help---
|
||||
For backwards compatibility, this option allows
|
||||
deprecated power /proc/acpi/ folders to exist, even when
|
||||
deprecated power /proc/acpi/ directories to exist, even when
|
||||
they have been replaced by functions in /sys.
|
||||
The deprecated folders (and their replacements) include:
|
||||
The deprecated directories (and their replacements) include:
|
||||
/proc/acpi/battery/* (/sys/class/power_supply/*)
|
||||
/proc/acpi/ac_adapter/* (sys/class/power_supply/*)
|
||||
This option has no effect on /proc/acpi/ folders
|
||||
This option has no effect on /proc/acpi/ directories
|
||||
and functions, which do not yet exist in /sys
|
||||
|
||||
Say N to delete power /proc/acpi/ folders that have moved to /sys/
|
||||
Say N to delete power /proc/acpi/ directories that have moved to /sys/
|
||||
|
||||
config ACPI_SYSFS_POWER
|
||||
bool "Future power /sys interface"
|
||||
select POWER_SUPPLY
|
||||
default y
|
||||
---help---
|
||||
Say N to disable power /sys interface
|
||||
|
||||
config ACPI_PROC_EVENT
|
||||
bool "Deprecated /proc/acpi/event support"
|
||||
depends on PROC_FS
|
||||
|
@ -134,7 +134,7 @@ static ssize_t show_present(struct device *dev,
|
||||
return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay));
|
||||
|
||||
}
|
||||
DEVICE_ATTR(present, S_IRUGO, show_present, NULL);
|
||||
static DEVICE_ATTR(present, S_IRUGO, show_present, NULL);
|
||||
|
||||
/*
|
||||
* write_eject - write method for "eject" file in sysfs
|
||||
@ -150,7 +150,7 @@ static ssize_t write_eject(struct device *dev, struct device_attribute *attr,
|
||||
eject_device(bay->handle);
|
||||
return count;
|
||||
}
|
||||
DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject);
|
||||
static DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject);
|
||||
|
||||
/**
|
||||
* is_ata - see if a device is an ata device
|
||||
|
@ -391,7 +391,6 @@ int acpi_bus_receive_event(struct acpi_bus_event *event)
|
||||
return 0;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_bus_receive_event);
|
||||
#endif /* CONFIG_ACPI_PROC_EVENT */
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
|
@ -686,7 +686,7 @@ static ssize_t show_docked(struct device *dev,
|
||||
return snprintf(buf, PAGE_SIZE, "%d\n", dock_present(dock_station));
|
||||
|
||||
}
|
||||
DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL);
|
||||
static DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL);
|
||||
|
||||
/*
|
||||
* show_flags - read method for flags file in sysfs
|
||||
@ -697,7 +697,7 @@ static ssize_t show_flags(struct device *dev,
|
||||
return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags);
|
||||
|
||||
}
|
||||
DEVICE_ATTR(flags, S_IRUGO, show_flags, NULL);
|
||||
static DEVICE_ATTR(flags, S_IRUGO, show_flags, NULL);
|
||||
|
||||
/*
|
||||
* write_undock - write method for "undock" file in sysfs
|
||||
@ -713,7 +713,7 @@ static ssize_t write_undock(struct device *dev, struct device_attribute *attr,
|
||||
ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST);
|
||||
return ret ? ret: count;
|
||||
}
|
||||
DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock);
|
||||
static DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock);
|
||||
|
||||
/*
|
||||
* show_dock_uid - read method for "uid" file in sysfs
|
||||
@ -729,7 +729,7 @@ static ssize_t show_dock_uid(struct device *dev,
|
||||
|
||||
return snprintf(buf, PAGE_SIZE, "%lx\n", lbuf);
|
||||
}
|
||||
DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL);
|
||||
static DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL);
|
||||
|
||||
/**
|
||||
* dock_add - add a new dock station
|
||||
|
@ -36,8 +36,6 @@ int register_acpi_bus_type(struct acpi_bus_type *type)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(register_acpi_bus_type);
|
||||
|
||||
int unregister_acpi_bus_type(struct acpi_bus_type *type)
|
||||
{
|
||||
if (acpi_disabled)
|
||||
@ -53,8 +51,6 @@ int unregister_acpi_bus_type(struct acpi_bus_type *type)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(unregister_acpi_bus_type);
|
||||
|
||||
static struct acpi_bus_type *acpi_get_bus_type(struct bus_type *type)
|
||||
{
|
||||
struct acpi_bus_type *tmp, *ret = NULL;
|
||||
|
@ -78,6 +78,7 @@ int acpi_map_pxm_to_node(int pxm)
|
||||
return node;
|
||||
}
|
||||
|
||||
#if 0
|
||||
void __cpuinit acpi_unmap_pxm_to_node(int node)
|
||||
{
|
||||
int pxm = node_to_pxm_map[node];
|
||||
@ -85,6 +86,7 @@ void __cpuinit acpi_unmap_pxm_to_node(int node)
|
||||
node_to_pxm_map[node] = PXM_INVAL;
|
||||
node_clear(node, nodes_found_map);
|
||||
}
|
||||
#endif /* 0 */
|
||||
|
||||
static void __init
|
||||
acpi_table_print_srat_entry(struct acpi_subtable_header *header)
|
||||
@ -247,7 +249,6 @@ int acpi_get_pxm(acpi_handle h)
|
||||
} while (ACPI_SUCCESS(status));
|
||||
return -1;
|
||||
}
|
||||
EXPORT_SYMBOL(acpi_get_pxm);
|
||||
|
||||
int acpi_get_node(acpi_handle *handle)
|
||||
{
|
||||
|
@ -233,8 +233,6 @@ void acpi_os_printf(const char *fmt, ...)
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_printf);
|
||||
|
||||
void acpi_os_vprintf(const char *fmt, va_list args)
|
||||
{
|
||||
static char buffer[512];
|
||||
@ -413,8 +411,6 @@ void acpi_os_sleep(acpi_integer ms)
|
||||
schedule_timeout_interruptible(msecs_to_jiffies(ms));
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_sleep);
|
||||
|
||||
void acpi_os_stall(u32 us)
|
||||
{
|
||||
while (us) {
|
||||
@ -428,8 +424,6 @@ void acpi_os_stall(u32 us)
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_stall);
|
||||
|
||||
/*
|
||||
* Support ACPI 3.0 AML Timer operand
|
||||
* Returns 64-bit free-running, monotonically increasing timer
|
||||
@ -579,8 +573,6 @@ acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
|
||||
return (result ? AE_ERROR : AE_OK);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_read_pci_configuration);
|
||||
|
||||
acpi_status
|
||||
acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
|
||||
acpi_integer value, u32 width)
|
||||
@ -796,8 +788,6 @@ acpi_os_create_semaphore(u32 max_units, u32 initial_units, acpi_handle * handle)
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_create_semaphore);
|
||||
|
||||
/*
|
||||
* TODO: A better way to delete semaphores? Linux doesn't have a
|
||||
* 'delete_semaphore()' function -- may result in an invalid
|
||||
@ -821,8 +811,6 @@ acpi_status acpi_os_delete_semaphore(acpi_handle handle)
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_delete_semaphore);
|
||||
|
||||
/*
|
||||
* TODO: The kernel doesn't have a 'down_timeout' function -- had to
|
||||
* improvise. The process is to sleep for one scheduler quantum
|
||||
@ -915,8 +903,6 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
|
||||
return status;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_wait_semaphore);
|
||||
|
||||
/*
|
||||
* TODO: Support for units > 1?
|
||||
*/
|
||||
@ -939,8 +925,6 @@ acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units)
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_signal_semaphore);
|
||||
|
||||
#ifdef ACPI_FUTURE_USAGE
|
||||
u32 acpi_os_get_line(char *buffer)
|
||||
{
|
||||
@ -984,8 +968,6 @@ acpi_status acpi_os_signal(u32 function, void *info)
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_os_signal);
|
||||
|
||||
static int __init acpi_os_name_setup(char *str)
|
||||
{
|
||||
char *p = acpi_os_name;
|
||||
|
@ -44,6 +44,8 @@ struct acpi_pci_data {
|
||||
struct pci_dev *dev;
|
||||
};
|
||||
|
||||
static int acpi_pci_unbind(struct acpi_device *device);
|
||||
|
||||
static void acpi_pci_data_handler(acpi_handle handle, u32 function,
|
||||
void *context)
|
||||
{
|
||||
@ -267,7 +269,7 @@ int acpi_pci_bind(struct acpi_device *device)
|
||||
return result;
|
||||
}
|
||||
|
||||
int acpi_pci_unbind(struct acpi_device *device)
|
||||
static int acpi_pci_unbind(struct acpi_device *device)
|
||||
{
|
||||
int result = 0;
|
||||
acpi_status status = AE_OK;
|
||||
|
@ -475,8 +475,6 @@ int acpi_pci_irq_enable(struct pci_dev *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(acpi_pci_irq_enable);
|
||||
|
||||
/* FIXME: implement x86/x86_64 version */
|
||||
void __attribute__ ((weak)) acpi_unregister_gsi(u32 i)
|
||||
{
|
||||
|
@ -95,7 +95,7 @@ static struct {
|
||||
int count;
|
||||
struct list_head entries;
|
||||
} acpi_link;
|
||||
DEFINE_MUTEX(acpi_link_lock);
|
||||
static DEFINE_MUTEX(acpi_link_lock);
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
PCI Link Device Management
|
||||
|
@ -888,7 +888,7 @@ static void acpi_charger_remove(struct acpi_sbs *sbs)
|
||||
#endif
|
||||
}
|
||||
|
||||
void acpi_sbs_callback(void *context)
|
||||
static void acpi_sbs_callback(void *context)
|
||||
{
|
||||
int id;
|
||||
struct acpi_sbs *sbs = context;
|
||||
|
@ -111,8 +111,8 @@ static int wait_transaction_complete(struct acpi_smb_hc *hc, int timeout)
|
||||
return -ETIME;
|
||||
}
|
||||
|
||||
int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol, u8 address,
|
||||
u8 command, u8 *data, u8 length)
|
||||
static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol,
|
||||
u8 address, u8 command, u8 *data, u8 length)
|
||||
{
|
||||
int ret = -EFAULT, i;
|
||||
u8 temp, sz = 0;
|
||||
|
@ -59,7 +59,7 @@ static int create_modalias(struct acpi_device *acpi_dev, char *modalias,
|
||||
count = snprintf(&modalias[len], size, "%s:",
|
||||
cid_list->id[i].value);
|
||||
if (count < 0 || count >= size) {
|
||||
printk(KERN_ERR "acpi: %s cid[%i] exceeds event buffer size",
|
||||
printk(KERN_ERR PREFIX "%s cid[%i] exceeds event buffer size",
|
||||
acpi_dev->pnp.device_name, i);
|
||||
break;
|
||||
}
|
||||
@ -453,7 +453,7 @@ static int acpi_device_register(struct acpi_device *device,
|
||||
device->dev.release = &acpi_device_release;
|
||||
result = device_add(&device->dev);
|
||||
if(result) {
|
||||
printk("Error adding device %s", device->dev.bus_id);
|
||||
printk(KERN_ERR PREFIX "Error adding device %s", device->dev.bus_id);
|
||||
goto end;
|
||||
}
|
||||
|
||||
@ -966,7 +966,7 @@ static void acpi_device_set_id(struct acpi_device *device,
|
||||
case ACPI_BUS_TYPE_DEVICE:
|
||||
status = acpi_get_object_info(handle, &buffer);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
printk("%s: Error reading device info\n", __FUNCTION__);
|
||||
printk(KERN_ERR PREFIX "%s: Error reading device info\n", __FUNCTION__);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1072,7 +1072,7 @@ static void acpi_device_set_id(struct acpi_device *device,
|
||||
list->count = count;
|
||||
device->pnp.cid_list = list;
|
||||
} else
|
||||
printk(KERN_ERR "Memory allocation error\n");
|
||||
printk(KERN_ERR PREFIX "Memory allocation error\n");
|
||||
}
|
||||
|
||||
kfree(buffer.pointer);
|
||||
@ -1096,7 +1096,7 @@ static int acpi_device_set_context(struct acpi_device *device, int type)
|
||||
acpi_bus_data_handler, device);
|
||||
|
||||
if (ACPI_FAILURE(status)) {
|
||||
printk("Error attaching device data\n");
|
||||
printk(KERN_ERR PREFIX "Error attaching device data\n");
|
||||
result = -ENODEV;
|
||||
}
|
||||
}
|
||||
|
@ -486,7 +486,7 @@
|
||||
#define ACPI_FUNCTION_NAME(name)
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_FUNC_TRACE
|
||||
#ifdef CONFIG_ACPI_DEBUG_FUNC_TRACE
|
||||
|
||||
#define ACPI_FUNCTION_TRACE(a) ACPI_FUNCTION_NAME(a) \
|
||||
acpi_ut_trace(ACPI_DEBUG_PARAMETERS)
|
||||
@ -565,7 +565,7 @@
|
||||
|
||||
#endif /* ACPI_SIMPLE_RETURN_MACROS */
|
||||
|
||||
#else /* !DEBUG_FUNC_TRACE */
|
||||
#else /* !CONFIG_ACPI_DEBUG_FUNC_TRACE */
|
||||
|
||||
#define ACPI_FUNCTION_TRACE(a)
|
||||
#define ACPI_FUNCTION_TRACE_PTR(a,b)
|
||||
@ -584,7 +584,7 @@
|
||||
#define return_UINT32(s) return(s)
|
||||
#define return_PTR(s) return(s)
|
||||
|
||||
#endif /* DEBUG_FUNC_TRACE */
|
||||
#endif /* CONFIG_ACPI_DEBUG_FUNC_TRACE */
|
||||
|
||||
/* Conditional execution */
|
||||
|
||||
|
@ -74,7 +74,6 @@ struct pci_bus;
|
||||
|
||||
acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id);
|
||||
int acpi_pci_bind(struct acpi_device *device);
|
||||
int acpi_pci_unbind(struct acpi_device *device);
|
||||
int acpi_pci_bind_root(struct acpi_device *device, struct acpi_pci_id *id,
|
||||
struct pci_bus *bus);
|
||||
|
||||
|
@ -15,7 +15,6 @@ extern int pxm_to_node(int);
|
||||
extern int node_to_pxm(int);
|
||||
extern void __acpi_map_pxm_to_node(int, int);
|
||||
extern int acpi_map_pxm_to_node(int);
|
||||
extern void __cpuinit acpi_unmap_pxm_to_node(int);
|
||||
|
||||
#endif /* CONFIG_ACPI_NUMA */
|
||||
#endif /* __ACP_NUMA_H */
|
||||
|
@ -44,8 +44,6 @@
|
||||
#include <linux/dmi.h>
|
||||
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
|
||||
enum acpi_irq_model_id {
|
||||
ACPI_IRQ_MODEL_PIC = 0,
|
||||
ACPI_IRQ_MODEL_IOAPIC,
|
||||
@ -116,9 +114,7 @@ int acpi_unmap_lsapic(int cpu);
|
||||
int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base);
|
||||
int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base);
|
||||
void acpi_irq_stats_init(void);
|
||||
|
||||
extern u32 acpi_irq_handled;
|
||||
extern int acpi_mp_config;
|
||||
|
||||
extern struct acpi_mcfg_allocation *pci_mmcfg_config;
|
||||
extern int pci_mmcfg_config_num;
|
||||
@ -126,12 +122,6 @@ extern int pci_mmcfg_config_num;
|
||||
extern int sbf_port;
|
||||
extern unsigned long acpi_realmode_flags;
|
||||
|
||||
#else /* !CONFIG_ACPI */
|
||||
|
||||
#define acpi_mp_config 0
|
||||
|
||||
#endif /* !CONFIG_ACPI */
|
||||
|
||||
int acpi_register_gsi (u32 gsi, int triggering, int polarity);
|
||||
int acpi_gsi_to_irq (u32 gsi, unsigned int *irq);
|
||||
|
||||
@ -147,8 +137,6 @@ extern int acpi_get_override_irq(int bus_irq, int *trigger, int *polarity);
|
||||
*/
|
||||
void acpi_unregister_gsi (u32 gsi);
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
|
||||
struct acpi_prt_entry {
|
||||
struct list_head node;
|
||||
struct acpi_pci_id id;
|
||||
@ -181,8 +169,6 @@ struct acpi_pci_driver {
|
||||
int acpi_pci_register_driver(struct acpi_pci_driver *driver);
|
||||
void acpi_pci_unregister_driver(struct acpi_pci_driver *driver);
|
||||
|
||||
#endif /* CONFIG_ACPI */
|
||||
|
||||
#ifdef CONFIG_ACPI_EC
|
||||
|
||||
extern int ec_read(u8 addr, u8 *val);
|
||||
|
Loading…
Reference in New Issue
Block a user