diff options
author | Len Brown <len.brown@intel.com> | 2006-01-07 03:50:18 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-07 03:50:18 -0500 |
commit | ed03f430cdc8c802652467e9097606fedc2c7abc (patch) | |
tree | 30941ec1e6f93e99358fefe18175e5dd800a4379 /drivers/acpi | |
parent | ed349a8a0a780ed27e2a765f16cee54d9b63bfee (diff) | |
parent | 6f957eaf79356a32e838f5f262ee9a60544b1d5b (diff) |
Pull pnpacpi into acpica branch
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/container.c | 8 | ||||
-rw-r--r-- | drivers/acpi/pci_link.c | 2 | ||||
-rw-r--r-- | drivers/acpi/processor_core.c | 8 | ||||
-rw-r--r-- | drivers/acpi/processor_thermal.c | 4 | ||||
-rw-r--r-- | drivers/acpi/scan.c | 14 |
5 files changed, 18 insertions, 18 deletions
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c index 27ec12c1fab0..b69a8cad82b7 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c | |||
@@ -172,21 +172,21 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context) | |||
172 | if (ACPI_FAILURE(status) || !device) { | 172 | if (ACPI_FAILURE(status) || !device) { |
173 | result = container_device_add(&device, handle); | 173 | result = container_device_add(&device, handle); |
174 | if (!result) | 174 | if (!result) |
175 | kobject_hotplug(&device->kobj, | 175 | kobject_uevent(&device->kobj, |
176 | KOBJ_ONLINE); | 176 | KOBJ_ONLINE); |
177 | else | 177 | else |
178 | printk("Failed to add container\n"); | 178 | printk("Failed to add container\n"); |
179 | } | 179 | } |
180 | } else { | 180 | } else { |
181 | if (ACPI_SUCCESS(status)) { | 181 | if (ACPI_SUCCESS(status)) { |
182 | /* device exist and this is a remove request */ | 182 | /* device exist and this is a remove request */ |
183 | kobject_hotplug(&device->kobj, KOBJ_OFFLINE); | 183 | kobject_uevent(&device->kobj, KOBJ_OFFLINE); |
184 | } | 184 | } |
185 | } | 185 | } |
186 | break; | 186 | break; |
187 | case ACPI_NOTIFY_EJECT_REQUEST: | 187 | case ACPI_NOTIFY_EJECT_REQUEST: |
188 | if (!acpi_bus_get_device(handle, &device) && device) { | 188 | if (!acpi_bus_get_device(handle, &device) && device) { |
189 | kobject_hotplug(&device->kobj, KOBJ_OFFLINE); | 189 | kobject_uevent(&device->kobj, KOBJ_OFFLINE); |
190 | } | 190 | } |
191 | break; | 191 | break; |
192 | default: | 192 | default: |
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 492170373494..1ffc77115367 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -316,7 +316,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq) | |||
316 | if (!link || !irq) | 316 | if (!link || !irq) |
317 | return_VALUE(-EINVAL); | 317 | return_VALUE(-EINVAL); |
318 | 318 | ||
319 | resource = kmalloc(sizeof(*resource) + 1, GFP_KERNEL); | 319 | resource = kmalloc(sizeof(*resource) + 1, GFP_ATOMIC); |
320 | if (!resource) | 320 | if (!resource) |
321 | return_VALUE(-ENOMEM); | 321 | return_VALUE(-ENOMEM); |
322 | 322 | ||
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 0c561c571f29..1278aca96fe3 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -748,7 +748,7 @@ int acpi_processor_device_add(acpi_handle handle, struct acpi_device **device) | |||
748 | return_VALUE(-ENODEV); | 748 | return_VALUE(-ENODEV); |
749 | 749 | ||
750 | if ((pr->id >= 0) && (pr->id < NR_CPUS)) { | 750 | if ((pr->id >= 0) && (pr->id < NR_CPUS)) { |
751 | kobject_hotplug(&(*device)->kobj, KOBJ_ONLINE); | 751 | kobject_uevent(&(*device)->kobj, KOBJ_ONLINE); |
752 | } | 752 | } |
753 | return_VALUE(0); | 753 | return_VALUE(0); |
754 | } | 754 | } |
@@ -788,13 +788,13 @@ acpi_processor_hotplug_notify(acpi_handle handle, u32 event, void *data) | |||
788 | } | 788 | } |
789 | 789 | ||
790 | if (pr->id >= 0 && (pr->id < NR_CPUS)) { | 790 | if (pr->id >= 0 && (pr->id < NR_CPUS)) { |
791 | kobject_hotplug(&device->kobj, KOBJ_OFFLINE); | 791 | kobject_uevent(&device->kobj, KOBJ_OFFLINE); |
792 | break; | 792 | break; |
793 | } | 793 | } |
794 | 794 | ||
795 | result = acpi_processor_start(device); | 795 | result = acpi_processor_start(device); |
796 | if ((!result) && ((pr->id >= 0) && (pr->id < NR_CPUS))) { | 796 | if ((!result) && ((pr->id >= 0) && (pr->id < NR_CPUS))) { |
797 | kobject_hotplug(&device->kobj, KOBJ_ONLINE); | 797 | kobject_uevent(&device->kobj, KOBJ_ONLINE); |
798 | } else { | 798 | } else { |
799 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 799 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, |
800 | "Device [%s] failed to start\n", | 800 | "Device [%s] failed to start\n", |
@@ -818,7 +818,7 @@ acpi_processor_hotplug_notify(acpi_handle handle, u32 event, void *data) | |||
818 | } | 818 | } |
819 | 819 | ||
820 | if ((pr->id < NR_CPUS) && (cpu_present(pr->id))) | 820 | if ((pr->id < NR_CPUS) && (cpu_present(pr->id))) |
821 | kobject_hotplug(&device->kobj, KOBJ_OFFLINE); | 821 | kobject_uevent(&device->kobj, KOBJ_OFFLINE); |
822 | break; | 822 | break; |
823 | default: | 823 | default: |
824 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 824 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
diff --git a/drivers/acpi/processor_thermal.c b/drivers/acpi/processor_thermal.c index f37584015324..dc9817cfb882 100644 --- a/drivers/acpi/processor_thermal.c +++ b/drivers/acpi/processor_thermal.c | |||
@@ -102,8 +102,8 @@ static int cpu_has_cpufreq(unsigned int cpu) | |||
102 | { | 102 | { |
103 | struct cpufreq_policy policy; | 103 | struct cpufreq_policy policy; |
104 | if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu)) | 104 | if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu)) |
105 | return -ENODEV; | 105 | return 0; |
106 | return 0; | 106 | return 1; |
107 | } | 107 | } |
108 | 108 | ||
109 | static int acpi_thermal_cpufreq_increase(unsigned int cpu) | 109 | static int acpi_thermal_cpufreq_increase(unsigned int cpu) |
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index e332306ae2b9..c60516d0f66b 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -78,7 +78,7 @@ static struct kobj_type ktype_acpi_ns = { | |||
78 | .release = acpi_device_release, | 78 | .release = acpi_device_release, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | static int namespace_hotplug(struct kset *kset, struct kobject *kobj, | 81 | static int namespace_uevent(struct kset *kset, struct kobject *kobj, |
82 | char **envp, int num_envp, char *buffer, | 82 | char **envp, int num_envp, char *buffer, |
83 | int buffer_size) | 83 | int buffer_size) |
84 | { | 84 | { |
@@ -89,8 +89,8 @@ static int namespace_hotplug(struct kset *kset, struct kobject *kobj, | |||
89 | if (!dev->driver) | 89 | if (!dev->driver) |
90 | return 0; | 90 | return 0; |
91 | 91 | ||
92 | if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, &len, | 92 | if (add_uevent_var(envp, num_envp, &i, buffer, buffer_size, &len, |
93 | "PHYSDEVDRIVER=%s", dev->driver->name)) | 93 | "PHYSDEVDRIVER=%s", dev->driver->name)) |
94 | return -ENOMEM; | 94 | return -ENOMEM; |
95 | 95 | ||
96 | envp[i] = NULL; | 96 | envp[i] = NULL; |
@@ -98,8 +98,8 @@ static int namespace_hotplug(struct kset *kset, struct kobject *kobj, | |||
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
100 | 100 | ||
101 | static struct kset_hotplug_ops namespace_hotplug_ops = { | 101 | static struct kset_uevent_ops namespace_uevent_ops = { |
102 | .hotplug = &namespace_hotplug, | 102 | .uevent = &namespace_uevent, |
103 | }; | 103 | }; |
104 | 104 | ||
105 | static struct kset acpi_namespace_kset = { | 105 | static struct kset acpi_namespace_kset = { |
@@ -108,7 +108,7 @@ static struct kset acpi_namespace_kset = { | |||
108 | }, | 108 | }, |
109 | .subsys = &acpi_subsys, | 109 | .subsys = &acpi_subsys, |
110 | .ktype = &ktype_acpi_ns, | 110 | .ktype = &ktype_acpi_ns, |
111 | .hotplug_ops = &namespace_hotplug_ops, | 111 | .uevent_ops = &namespace_uevent_ops, |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static void acpi_device_register(struct acpi_device *device, | 114 | static void acpi_device_register(struct acpi_device *device, |
@@ -347,7 +347,7 @@ static int acpi_bus_get_wakeup_device_flags(struct acpi_device *device) | |||
347 | } | 347 | } |
348 | 348 | ||
349 | /* -------------------------------------------------------------------------- | 349 | /* -------------------------------------------------------------------------- |
350 | ACPI hotplug sysfs device file support | 350 | ACPI sysfs device file support |
351 | -------------------------------------------------------------------------- */ | 351 | -------------------------------------------------------------------------- */ |
352 | static ssize_t acpi_eject_store(struct acpi_device *device, | 352 | static ssize_t acpi_eject_store(struct acpi_device *device, |
353 | const char *buf, size_t count); | 353 | const char *buf, size_t count); |