diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-07-08 14:22:00 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-07-08 14:22:00 +0100 |
commit | 3e4d0322b7e4e72cda643d0baa4df2828beb6882 (patch) | |
tree | 0cf6807f523461408696c73b45d6d5f45b75fc40 /xen/arch/x86/hvm/hpet.c | |
parent | ab7dec034504687152c297e6d231d3fdc868281d (diff) | |
download | xen-3e4d0322b7e4e72cda643d0baa4df2828beb6882.tar.gz xen-3e4d0322b7e4e72cda643d0baa4df2828beb6882.tar.bz2 xen-3e4d0322b7e4e72cda643d0baa4df2828beb6882.zip |
x86 hvm: Use 'x' as parameter name for macros converting between
{vcpu,domain} and {vlapic,vpic,vrtc,hpet}. Completely avoids
accidental aliasing.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/hpet.c')
-rw-r--r-- | xen/arch/x86/hvm/hpet.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c index 89af0b61ee..73eef72360 100644 --- a/xen/arch/x86/hvm/hpet.c +++ b/xen/arch/x86/hvm/hpet.c @@ -24,11 +24,11 @@ #include <xen/sched.h> #include <xen/event.h> -#define domain_vhpet(d) (&(d)->arch.hvm_domain.pl_time.vhpet) -#define vcpu_vhpet(vcpu) (domain_vhpet((vcpu)->domain)) -#define vhpet_domain(hpet) (container_of((hpet), struct domain, \ - arch.hvm_domain.pl_time.vhpet)) -#define vhpet_vcpu(hpet) (pt_global_vcpu_target(vhpet_domain(hpet))) +#define domain_vhpet(x) (&(x)->arch.hvm_domain.pl_time.vhpet) +#define vcpu_vhpet(x) (domain_vhpet((x)->domain)) +#define vhpet_domain(x) (container_of((x), struct domain, \ + arch.hvm_domain.pl_time.vhpet)) +#define vhpet_vcpu(x) (pt_global_vcpu_target(vhpet_domain(x))) #define HPET_BASE_ADDRESS 0xfed00000ULL #define HPET_MMAP_SIZE 1024 |