浏览代码

Staging: hv: Cleanup vmalloc calls

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>
K. Y. Srinivasan 14 年之前
父节点
当前提交
d97ae00ea6
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      drivers/staging/hv/hv.c

+ 0 - 5
drivers/staging/hv/hv.c

@@ -230,12 +230,7 @@ int hv_init(void)
 	* Allocate the hypercall page memory
 	* Allocate the hypercall page memory
 	* virtaddr = osd_page_alloc(1);
 	* virtaddr = osd_page_alloc(1);
 	*/
 	*/
-#ifdef __x86_64__
 	virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL_EXEC);
 	virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL_EXEC);
-#else
-	virtaddr =  __vmalloc(PAGE_SIZE, GFP_KERNEL,
-			__pgprot(__PAGE_KERNEL & (~_PAGE_NX)));
-#endif
 
 
 	if (!virtaddr) {
 	if (!virtaddr) {
 		DPRINT_ERR(VMBUS,
 		DPRINT_ERR(VMBUS,