Skip to content

Commit

Permalink
Staging: hv: Cleanup vmalloc calls
Browse files Browse the repository at this point in the history
The subject says it all. There is no need to
specify different page protection bits based
on the architecture.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent e3fe0bb commit d97ae00
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,7 @@ int hv_init(void)
* Allocate the hypercall page memory
* virtaddr = osd_page_alloc(1);
*/
#ifdef __x86_64__
virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL_EXEC);
#else
virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL,
__pgprot(__PAGE_KERNEL & (~_PAGE_NX)));
#endif

if (!virtaddr) {
DPRINT_ERR(VMBUS,
Expand Down

0 comments on commit d97ae00

Please sign in to comment.