* [PATCH]: Staging: hv: Cleanup vmalloc calls
@ 2011-02-11 22:48 K. Y. Srinivasan
2011-02-11 22:53 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: K. Y. Srinivasan @ 2011-02-11 22:48 UTC (permalink / raw)
To: gregkh, linux-kernel, devel, virtualization
Cc: K. Y. Srinivasan, Hank Janssen
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>
---
drivers/staging/hv/hv.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/hv/hv.c b/drivers/staging/hv/hv.c
index 31b9073..2d492ad 100644
--- a/drivers/staging/hv/hv.c
+++ b/drivers/staging/hv/hv.c
@@ -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,
--
1.5.5.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-11 22:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11 22:48 [PATCH]: Staging: hv: Cleanup vmalloc calls K. Y. Srinivasan
2011-02-11 22:53 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).