ia64/xen-unstable

changeset 14191:a5b5279d2ba3

xen: Last minute rename of RCU domain get/put functions:
find_domain_rcu_lock -> rcu_lock_domain_by_id
domain_rcu_unlock -> rcu_unlock_domain
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Mar 01 10:32:52 2007 +0000 (2007-03-01)
parents 44048a3f7caa
children 09a9b6d6c356
files xen/common/domain.c xen/include/xen/sched.h
line diff
     1.1 --- a/xen/common/domain.c	Thu Mar 01 10:24:19 2007 +0000
     1.2 +++ b/xen/common/domain.c	Thu Mar 01 10:32:52 2007 +0000
     1.3 @@ -236,7 +236,7 @@ struct domain *get_domain_by_id(domid_t 
     1.4  }
     1.5  
     1.6  
     1.7 -struct domain *find_domain_rcu_lock(domid_t dom)
     1.8 +struct domain *rcu_lock_domain_by_id(domid_t dom)
     1.9  {
    1.10      struct domain *d;
    1.11  
     2.1 --- a/xen/include/xen/sched.h	Thu Mar 01 10:24:19 2007 +0000
     2.2 +++ b/xen/include/xen/sched.h	Thu Mar 01 10:32:52 2007 +0000
     2.3 @@ -270,16 +270,16 @@ int construct_dom0(
     2.4      char *cmdline);
     2.5  
     2.6  /*
     2.7 - * find_domain_rcu_lock() is more efficient than get_domain_by_id().
     2.8 + * rcu_lock_domain_by_id() is more efficient than get_domain_by_id().
     2.9   * This is the preferred function if the returned domain reference
    2.10   * is short lived,  but it cannot be used if the domain reference needs 
    2.11   * to be kept beyond the current scope (e.g., across a softirq).
    2.12 - * The returned domain reference must be discarded using domain_rcu_unlock().
    2.13 + * The returned domain reference must be discarded using rcu_unlock_domain().
    2.14   */
    2.15 -struct domain *find_domain_rcu_lock(domid_t dom);
    2.16 +struct domain *rcu_lock_domain_by_id(domid_t dom);
    2.17  
    2.18 -/* Finish a RCU critical region started by find_domain_rcu_lock(). */
    2.19 -static inline void domain_rcu_unlock(struct domain *d)
    2.20 +/* Finish a RCU critical region started by rcu_lock_domain_by_id(). */
    2.21 +static inline void rcu_unlock_domain(struct domain *d)
    2.22  {
    2.23      rcu_read_unlock(&domlist_read_lock);
    2.24  }