Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288868
b: refs/heads/master
c: 14c1bf8
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent a997f94 commit 70fb1dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 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: 2640335438ca4d7b139e114dae5f0d80e740e106
refs/heads/master: 14c1bf8a8920f36f6e0603a2ff920b48eec14387
4 changes: 2 additions & 2 deletions trunk/drivers/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ int hv_init(void)
union hv_x64_msr_hypercall_contents hypercall_msr;
void *virtaddr = NULL;

memset(hv_context.synic_event_page, 0, sizeof(void *) * MAX_NUM_CPUS);
memset(hv_context.synic_event_page, 0, sizeof(void *) * NR_CPUS);
memset(hv_context.synic_message_page, 0,
sizeof(void *) * MAX_NUM_CPUS);
sizeof(void *) * NR_CPUS);

if (!query_hypervisor_presence())
goto cleanup;
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/hv/hyperv_vmbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ static const uuid_le VMBUS_SERVICE_ID = {
},
};

#define MAX_NUM_CPUS 32


struct hv_input_signal_event_buffer {
Expand All @@ -483,8 +482,8 @@ struct hv_context {
/* 8-bytes aligned of the buffer above */
struct hv_input_signal_event *signal_event_param;

void *synic_message_page[MAX_NUM_CPUS];
void *synic_event_page[MAX_NUM_CPUS];
void *synic_message_page[NR_CPUS];
void *synic_event_page[NR_CPUS];
};

extern struct hv_context hv_context;
Expand Down

0 comments on commit 70fb1dd

Please sign in to comment.