Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101980
b: refs/heads/master
c: 9f1eb99
h: refs/heads/master
v: v3
  • Loading branch information
Zhang Rui authored and Andi Kleen committed Jul 16, 2008
1 parent 633c4a0 commit 58094dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b62b8ef906cdf7115af579ce7378886ce3e0ce00
refs/heads/master: 9f1eb99c757939b0b1783f926130993e9c298bae
8 changes: 7 additions & 1 deletion trunk/drivers/acpi/processor_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ static int __cpuinit acpi_processor_start(struct acpi_device *device)
int result = 0;
acpi_status status = AE_OK;
struct acpi_processor *pr;

struct sys_device *sysdev;

pr = acpi_driver_data(device);

Expand Down Expand Up @@ -652,6 +652,10 @@ static int __cpuinit acpi_processor_start(struct acpi_device *device)
if (result)
goto end;

sysdev = get_cpu_sysdev(pr->id);
if (sysfs_create_link(&device->dev.kobj, &sysdev->kobj, "sysdev"))
return -EFAULT;

status = acpi_install_notify_handler(pr->handle, ACPI_DEVICE_NOTIFY,
acpi_processor_notify, pr);

Expand Down Expand Up @@ -810,6 +814,8 @@ static int acpi_processor_remove(struct acpi_device *device, int type)
status = acpi_remove_notify_handler(pr->handle, ACPI_DEVICE_NOTIFY,
acpi_processor_notify);

sysfs_remove_link(&device->dev.kobj, "sysdev");

acpi_processor_remove_fs(device);

if (pr->cdev) {
Expand Down

0 comments on commit 58094dd

Please sign in to comment.