ia64/xen-unstable
changeset 4328:f71b1114a5c3
bitkeeper revision 1.1236.43.11 (4244199bhSeKA6aHwn5DYaLjeLwt9A)
Remove unused function find_last_domain().
Signed-off-by: Keir Fraser <keir@xensource.com>
Remove unused function find_last_domain().
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Fri Mar 25 14:00:59 2005 +0000 (2005-03-25) |
parents | 4a339d097802 |
children | 9dd7bd4776a1 fac5011f75be |
files | xen/common/domain.c xen/include/xen/sched.h |
line diff
1.1 --- a/xen/common/domain.c Fri Mar 25 13:52:05 2005 +0000 1.2 +++ b/xen/common/domain.c Fri Mar 25 14:00:59 2005 +0000 1.3 @@ -41,7 +41,6 @@ struct domain *do_createdomain(domid_t d 1.4 1.5 d->id = dom_id; 1.6 ed->processor = cpu; 1.7 - d->create_time = NOW(); 1.8 1.9 spin_lock_init(&d->time_lock); 1.10 1.11 @@ -107,28 +106,6 @@ struct domain *find_domain_by_id(domid_t 1.12 } 1.13 1.14 1.15 -/* Return the most recently created domain. */ 1.16 -struct domain *find_last_domain(void) 1.17 -{ 1.18 - struct domain *d, *dlast; 1.19 - 1.20 - read_lock(&domlist_lock); 1.21 - dlast = domain_list; 1.22 - d = dlast->next_list; 1.23 - while ( d != NULL ) 1.24 - { 1.25 - if ( d->create_time > dlast->create_time ) 1.26 - dlast = d; 1.27 - d = d->next_list; 1.28 - } 1.29 - if ( !get_domain(dlast) ) 1.30 - dlast = NULL; 1.31 - read_unlock(&domlist_lock); 1.32 - 1.33 - return dlast; 1.34 -} 1.35 - 1.36 - 1.37 #ifndef CONFIG_IA64 1.38 extern void physdev_destroy_state(struct domain *d); 1.39 #else 1.40 @@ -207,6 +184,7 @@ void domain_shutdown(u8 reason) 1.41 raise_softirq(SCHEDULE_SOFTIRQ); 1.42 } 1.43 1.44 + 1.45 unsigned int alloc_new_dom_mem(struct domain *d, unsigned int kbytes) 1.46 { 1.47 unsigned int alloc_pfns, nr_pages; 1.48 @@ -349,7 +327,8 @@ long do_boot_vcpu(unsigned long vcpu, fu 1.49 1.50 sched_add_domain(ed); 1.51 1.52 - if ( (rc = arch_set_info_guest(ed, c)) != 0 ) { 1.53 + if ( (rc = arch_set_info_guest(ed, c)) != 0 ) 1.54 + { 1.55 sched_rem_domain(ed); 1.56 goto out; 1.57 }
2.1 --- a/xen/include/xen/sched.h Fri Mar 25 13:52:05 2005 +0000 2.2 +++ b/xen/include/xen/sched.h Fri Mar 25 14:00:59 2005 +0000 2.3 @@ -97,7 +97,6 @@ struct exec_domain 2.4 struct domain 2.5 { 2.6 domid_t id; 2.7 - s_time_t create_time; 2.8 2.9 shared_info_t *shared_info; /* shared data area */ 2.10 spinlock_t time_lock; 2.11 @@ -215,7 +214,6 @@ extern int construct_dom0( 2.12 extern int set_info_guest(struct domain *d, dom0_setdomaininfo_t *); 2.13 2.14 struct domain *find_domain_by_id(domid_t dom); 2.15 -struct domain *find_last_domain(void); 2.16 extern void domain_destruct(struct domain *d); 2.17 extern void domain_kill(struct domain *d); 2.18 extern void domain_shutdown(u8 reason); 2.19 @@ -401,7 +399,6 @@ static inline void domain_unpause_by_sys 2.20 #include <xen/slab.h> 2.21 #include <xen/domain.h> 2.22 2.23 - 2.24 #endif /* __SCHED_H__ */ 2.25 2.26 /*