Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355050
b: refs/heads/master
c: 3dd6cb4
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jan 25, 2013
1 parent 8359c26 commit e7b4c6a
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 048c5add0865eca299189263b0bf1c7a606de24a
refs/heads/master: 3dd6cb497198a0533a2530b6a345c60c9a29b9bc
12 changes: 11 additions & 1 deletion trunk/drivers/hv/hv_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
.util_deinit = hv_kvp_deinit,
};

static void perform_shutdown(struct work_struct *dummy)
{
orderly_poweroff(true);
}

/*
* Perform the shutdown operation in a thread context.
*/
static DECLARE_WORK(shutdown_work, perform_shutdown);

static void shutdown_onchannelcallback(void *context)
{
struct vmbus_channel *channel = context;
Expand Down Expand Up @@ -106,7 +116,7 @@ static void shutdown_onchannelcallback(void *context)
}

if (execute_shutdown == true)
orderly_poweroff(true);
schedule_work(&shutdown_work);
}

/*
Expand Down

0 comments on commit e7b4c6a

Please sign in to comment.