Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54692
b: refs/heads/master
c: db9c02f
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed May 8, 2007
1 parent 1606ffb commit e5ddee6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: 1bd0cf1fc78e59e1d2b4e44348a85d39b983c80d
refs/heads/master: db9c02fa8bd50eb104781a9f78cae923d8da1e74
16 changes: 7 additions & 9 deletions trunk/drivers/pnp/pnpbios/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#include <linux/delay.h>
#include <linux/acpi.h>
#include <linux/freezer.h>
#include <linux/kthread.h>

#include <asm/page.h>
#include <asm/desc.h>
Expand Down Expand Up @@ -159,9 +160,7 @@ static int pnp_dock_thread(void * unused)
{
static struct pnp_docking_station_info now;
int docked = -1, d = 0;
daemonize("kpnpbiosd");
allow_signal(SIGKILL);
while(!unloading && !signal_pending(current))
while (!unloading)
{
int status;

Expand All @@ -170,11 +169,8 @@ static int pnp_dock_thread(void * unused)
*/
msleep_interruptible(2000);

if(signal_pending(current)) {
if (try_to_freeze())
continue;
break;
}
if (try_to_freeze())
continue;

status = pnp_bios_dock_station_info(&now);

Expand Down Expand Up @@ -581,6 +577,7 @@ subsys_initcall(pnpbios_init);

static int __init pnpbios_thread_init(void)
{
struct task_struct *task;
#if defined(CONFIG_PPC_MERGE)
if (check_legacy_ioport(PNPBIOS_BASE))
return 0;
Expand All @@ -589,7 +586,8 @@ static int __init pnpbios_thread_init(void)
return 0;
#ifdef CONFIG_HOTPLUG
init_completion(&unload_sem);
if (kernel_thread(pnp_dock_thread, NULL, CLONE_KERNEL) > 0)
task = kthread_run(pnp_dock_thread, NULL, "kpnpbiosd");
if (!IS_ERR(task))
unloading = 0;
#endif
return 0;
Expand Down

0 comments on commit e5ddee6

Please sign in to comment.