ia64/linux-2.6.18-xen.hg

view include/xen/hypervisor_sysfs.h @ 452:c7ed6fe5dca0

kexec: dont initialise regions in reserve_memory()

There is no need to initialise efi_memmap_res and boot_param_res in
reserve_memory() for the initial xen domain as it is done in
machine_kexec_setup_resources() using values from the kexec hypercall.

Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 28 10:55:18 2008 +0000 (2008-02-28)
parents 496e3157a35c
children
line source
1 /*
2 * copyright (c) 2006 IBM Corporation
3 * Authored by: Mike D. Day <ncmike@us.ibm.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
10 #ifndef _HYP_SYSFS_H_
11 #define _HYP_SYSFS_H_
13 #include <linux/kobject.h>
14 #include <linux/sysfs.h>
16 #define HYPERVISOR_ATTR_RO(_name) \
17 static struct hyp_sysfs_attr _name##_attr = __ATTR_RO(_name)
19 #define HYPERVISOR_ATTR_RW(_name) \
20 static struct hyp_sysfs_attr _name##_attr = \
21 __ATTR(_name, 0644, _name##_show, _name##_store)
23 struct hyp_sysfs_attr {
24 struct attribute attr;
25 ssize_t (*show)(struct hyp_sysfs_attr *, char *);
26 ssize_t (*store)(struct hyp_sysfs_attr *, const char *, size_t);
27 void *hyp_attr_data;
28 };
30 #endif /* _HYP_SYSFS_H_ */