There's no need to execute any instructions for doing so. Drop the then
effectively empty mem_sharing_init() altogether.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
efi_init_memory();
- mem_sharing_init();
-
#ifndef NDEBUG
if ( highmem_start )
{
#if MEM_SHARING_AUDIT
-static struct list_head shr_audit_list;
-static spinlock_t shr_audit_lock;
+static LIST_HEAD(shr_audit_list);
+static DEFINE_SPINLOCK(shr_audit_lock);
static DEFINE_RCU_READ_LOCK(shr_audit_read_lock);
/* RCU delayed free of audit list entry */
return rc;
}
-
-void __init mem_sharing_init(void)
-{
- printk("Initing memory sharing.\n");
-#if MEM_SHARING_AUDIT
- spin_lock_init(&shr_audit_lock);
- INIT_LIST_HEAD(&shr_audit_list);
-#endif
-}
-
int mem_sharing_memop(XEN_GUEST_HANDLE_PARAM(xen_mem_sharing_op_t) arg);
int mem_sharing_domctl(struct domain *d,
struct xen_domctl_mem_sharing_op *mec);
-void mem_sharing_init(void);
/* Scans the p2m and relinquishes any shared pages, destroying
* those for which this domain holds the final reference.