Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274727
b: refs/heads/master
c: 6b71c52
h: refs/heads/master
i:
  274725: e3ec11c
  274723: 87c68fe
  274719: 8d837a7
v: v3
  • Loading branch information
Olaf Hering authored and Konrad Rzeszutek Wilk committed Jul 29, 2011
1 parent 0e6fb75 commit 78979d3
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 6913200a566b6d2866d46d7b947a2326c4e11f55
refs/heads/master: 6b71c52e7f848e2c9f804e175215e5965ea90d32
17 changes: 8 additions & 9 deletions trunk/drivers/xen/xen-balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ static struct sys_device balloon_sysdev;

static int register_balloon(struct sys_device *sysdev);

static struct xenbus_watch target_watch =
{
.node = "memory/target"
};

/* React to a change in the target key */
static void watch_target(struct xenbus_watch *watch,
const char **vec, unsigned int len)
Expand All @@ -73,6 +68,11 @@ static void watch_target(struct xenbus_watch *watch,
*/
balloon_set_new_target(new_target >> (PAGE_SHIFT - 10));
}
static struct xenbus_watch target_watch = {
.node = "memory/target",
.callback = watch_target,
};


static int balloon_init_watcher(struct notifier_block *notifier,
unsigned long event,
Expand All @@ -87,7 +87,9 @@ static int balloon_init_watcher(struct notifier_block *notifier,
return NOTIFY_DONE;
}

static struct notifier_block xenstore_notifier;
static struct notifier_block xenstore_notifier = {
.notifier_call = balloon_init_watcher,
};

static int __init balloon_init(void)
{
Expand All @@ -100,9 +102,6 @@ static int __init balloon_init(void)

register_xen_selfballooning(&balloon_sysdev);

target_watch.callback = watch_target;
xenstore_notifier.notifier_call = balloon_init_watcher;

register_xenstore_notifier(&xenstore_notifier);

return 0;
Expand Down

0 comments on commit 78979d3

Please sign in to comment.