diff options
author | Liu, Jinsong <jinsong.liu@intel.com> | 2012-03-23 15:07:53 +0000 |
---|---|---|
committer | Liu, Jinsong <jinsong.liu@intel.com> | 2012-03-23 15:07:53 +0000 |
commit | 2772618c6eb3bc7cdf478f7dfdcb894eac0fe485 (patch) | |
tree | c6a9bd64f63021edfe516c8f38fd5ce858e5769e /xen/common/core_parking.c | |
parent | 2579d22937ec662a78597f56af5f4886826a475b (diff) | |
download | xen-2772618c6eb3bc7cdf478f7dfdcb894eac0fe485.tar.gz xen-2772618c6eb3bc7cdf478f7dfdcb894eac0fe485.tar.bz2 xen-2772618c6eb3bc7cdf478f7dfdcb894eac0fe485.zip |
Xen core parking 1: hypercall
This patch implement hypercall through which dom0 send core parking
request, and get core parking result.
Due to the characteristic of continue_hypercall_on_cpu, dom0
seperately send/get core parking request/result.
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/core_parking.c')
-rw-r--r-- | xen/common/core_parking.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xen/common/core_parking.c b/xen/common/core_parking.c new file mode 100644 index 0000000000..635793fba0 --- /dev/null +++ b/xen/common/core_parking.c @@ -0,0 +1,13 @@ +#include <xen/types.h> + +static uint32_t cur_idle_nums; + +long core_parking_helper(void *data) +{ + return 0; +} + +uint32_t get_cur_idle_nums(void) +{ + return cur_idle_nums; +} |