diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-02-11 10:00:12 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-18 13:11:03 -0800 |
commit | e3fe0bb65b2686aa83dabdb1ecc22f5d80c536f8 (patch) | |
tree | dc6e8b11cb6bce5659ec2c986e639b0fda2ce555 /drivers/staging/hv/channel.c | |
parent | 0c3b7b2f75158f9420ceeb87d5924bdbd8d0304a (diff) | |
download | op-kernel-dev-e3fe0bb65b2686aa83dabdb1ecc22f5d80c536f8.zip op-kernel-dev-e3fe0bb65b2686aa83dabdb1ecc22f5d80c536f8.tar.gz |
Staging: hv: Remove osd layer
The OSD layer was a wrapper around native interfaces
adding little value and was infact buggy -
refer to the osd_wait.patch for details.
This patch gets rid of the OSD abstraction.
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>
Diffstat (limited to 'drivers/staging/hv/channel.c')
-rw-r--r-- | drivers/staging/hv/channel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/hv/channel.c b/drivers/staging/hv/channel.c index 5a0923c..775a52a 100644 --- a/drivers/staging/hv/channel.c +++ b/drivers/staging/hv/channel.c @@ -24,10 +24,13 @@ #include <linux/mm.h> #include <linux/slab.h> #include <linux/module.h> -#include "osd.h" +#include "hv_api.h" #include "logging.h" #include "vmbus_private.h" +#define NUM_PAGES_SPANNED(addr, len) \ +((PAGE_ALIGN(addr + len) >> PAGE_SHIFT) - (addr >> PAGE_SHIFT)) + /* Internal routines */ static int create_gpadl_header( void *kbuffer, /* must be phys and virt contiguous */ |