Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355067
b: refs/heads/master
c: e500d15
h: refs/heads/master
i:
  355065: 41f26c3
  355063: 042dcc3
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 8, 2013
1 parent e763046 commit 43525c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 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: e1e0a9e6991ec2c611f13dfc0a6bc1a214a22374
refs/heads/master: e500d158fb07794724f12655f2eb5702fec613c4
13 changes: 11 additions & 2 deletions trunk/drivers/hv/hv_balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,17 @@ struct dm_info_msg {

static bool hot_add;
static bool do_hot_add;
/*
* Delay reporting memory pressure by
* the specified number of seconds.
*/
static uint pressure_report_delay = 30;

module_param(hot_add, bool, (S_IRUGO | S_IWUSR));
MODULE_PARM_DESC(hot_add, "If set attempt memory hot_add");

module_param(pressure_report_delay, uint, (S_IRUGO | S_IWUSR));
MODULE_PARM_DESC(pressure_report_delay, "Delay in secs in reporting pressure");
static atomic_t trans_id = ATOMIC_INIT(0);

static int dm_ring_size = (5 * PAGE_SIZE);
Expand Down Expand Up @@ -531,6 +538,10 @@ static void post_status(struct hv_dynmem_device *dm)
struct dm_status status;
struct sysinfo val;

if (pressure_report_delay > 0) {
--pressure_report_delay;
return;
}
si_meminfo(&val);
memset(&status, 0, sizeof(struct dm_status));
status.hdr.type = DM_STATUS_REPORT;
Expand All @@ -552,8 +563,6 @@ static void post_status(struct hv_dynmem_device *dm)

}



static void free_balloon_pages(struct hv_dynmem_device *dm,
union dm_mem_page_range *range_array)
{
Expand Down

0 comments on commit 43525c5

Please sign in to comment.