Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35656
b: refs/heads/master
c: c94a62a
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and Linus Torvalds committed Sep 26, 2006
1 parent 94b93e9 commit 5bfbc8d
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 3a750363e6075a28e5542ce93a69c620c0cfd605
refs/heads/master: c94a62aae6ebc99b416e55c023b6f5a1d19a400b
9 changes: 8 additions & 1 deletion trunk/arch/i386/kernel/apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2339,6 +2339,7 @@ static int __init apm_init(void)
ret = kernel_thread(apm, NULL, CLONE_KERNEL | SIGCHLD);
if (ret < 0) {
printk(KERN_ERR "apm: disabled - Unable to start kernel thread.\n");
remove_proc_entry("apm", NULL);
return -ENOMEM;
}

Expand All @@ -2348,7 +2349,13 @@ static int __init apm_init(void)
return 0;
}

misc_register(&apm_device);
/*
* Note we don't actually care if the misc_device cannot be registered.
* this driver can do its job without it, even if userspace can't
* control it. just log the error
*/
if (misc_register(&apm_device))
printk(KERN_WARNING "apm: Could not register misc device.\n");

if (HZ != 100)
idle_period = (idle_period * HZ) / 100;
Expand Down

0 comments on commit 5bfbc8d

Please sign in to comment.