[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Remove arch_alloc_domain_struct/arch_free_domain_struct.
ChangeSet 1.1447, 2005/04/04 18:49:17+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx Remove arch_alloc_domain_struct/arch_free_domain_struct. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> arch/ia64/domain.c | 10 ---------- arch/x86/domain.c | 10 ---------- common/schedule.c | 6 +++--- include/xen/domain.h | 4 ---- 4 files changed, 3 insertions(+), 27 deletions(-) diff -Nru a/xen/arch/ia64/domain.c b/xen/arch/ia64/domain.c --- a/xen/arch/ia64/domain.c 2005-04-04 14:02:57 -04:00 +++ b/xen/arch/ia64/domain.c 2005-04-04 14:02:57 -04:00 @@ -139,16 +139,6 @@ continue_cpu_idle_loop(); } -struct domain *arch_alloc_domain_struct(void) -{ - return xmalloc(struct domain); -} - -void arch_free_domain_struct(struct domain *d) -{ - xfree(d); -} - struct exec_domain *arch_alloc_exec_domain_struct(void) { /* Per-vp stack is used here. So we need keep exec_domain diff -Nru a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c --- a/xen/arch/x86/domain.c 2005-04-04 14:02:57 -04:00 +++ b/xen/arch/x86/domain.c 2005-04-04 14:02:57 -04:00 @@ -192,16 +192,6 @@ page->u.inuse.type_info); } -struct domain *arch_alloc_domain_struct(void) -{ - return xmalloc(struct domain); -} - -void arch_free_domain_struct(struct domain *d) -{ - xfree(d); -} - struct exec_domain *arch_alloc_exec_domain_struct(void) { return xmalloc(struct exec_domain); diff -Nru a/xen/common/schedule.c b/xen/common/schedule.c --- a/xen/common/schedule.c 2005-04-04 14:02:57 -04:00 +++ b/xen/common/schedule.c 2005-04-04 14:02:57 -04:00 @@ -94,7 +94,7 @@ if ( d->exec_domain[i] ) arch_free_exec_domain_struct(d->exec_domain[i]); - arch_free_domain_struct(d); + xfree(d); } struct exec_domain *alloc_exec_domain_struct(struct domain *d, @@ -147,7 +147,7 @@ { struct domain *d; - if ( (d = arch_alloc_domain_struct()) == NULL ) + if ( (d = xmalloc(struct domain)) == NULL ) return NULL; memset(d, 0, sizeof(*d)); @@ -158,7 +158,7 @@ return d; out: - arch_free_domain_struct(d); + xfree(d); return NULL; } diff -Nru a/xen/include/xen/domain.h b/xen/include/xen/domain.h --- a/xen/include/xen/domain.h 2005-04-04 14:02:57 -04:00 +++ b/xen/include/xen/domain.h 2005-04-04 14:02:57 -04:00 @@ -6,10 +6,6 @@ * Arch-specifics. */ -extern struct domain *arch_alloc_domain_struct(void); - -extern void arch_free_domain_struct(struct domain *d); - struct exec_domain *arch_alloc_exec_domain_struct(void); extern void arch_free_exec_domain_struct(struct exec_domain *ed); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |