[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [v3 02/13] xen/arm: gic: Rename make_dt_node into make_hwdom_dt_node
Making it clear that the callback is only used to make the device tree node for the hardware domain. Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- Changes in v3: - Fix typoes in commit message - Add Ian's ack Changes in v2: - Patch added --- xen/arch/arm/domain_build.c | 2 +- xen/arch/arm/gic-hip04.c | 7 ++++--- xen/arch/arm/gic-v2.c | 7 ++++--- xen/arch/arm/gic-v3.c | 7 ++++--- xen/arch/arm/gic.c | 7 ++++--- xen/include/asm-arm/gic.h | 9 +++++---- 6 files changed, 22 insertions(+), 17 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index e9cb8a9..366a05a 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -863,7 +863,7 @@ static int make_gic_node(const struct domain *d, void *fdt, if ( res ) return res; - res = gic_make_node(d, node, fdt); + res = gic_make_hwdom_dt_node(d, node, fdt); if ( res ) return res; diff --git a/xen/arch/arm/gic-hip04.c b/xen/arch/arm/gic-hip04.c index ee693e7..669d043 100644 --- a/xen/arch/arm/gic-hip04.c +++ b/xen/arch/arm/gic-hip04.c @@ -605,8 +605,9 @@ static void hip04gic_irq_set_affinity(struct irq_desc *desc, const cpumask_t *cp spin_unlock(&gicv2.lock); } -static int hip04gic_make_dt_node(const struct domain *d, - const struct dt_device_node *node, void *fdt) +static int hip04gic_make_hwdom_dt_node(const struct domain *d, + const struct dt_device_node *node, + void *fdt) { const struct dt_device_node *gic = dt_interrupt_controller; const void *compatible; @@ -768,7 +769,7 @@ const static struct gic_hw_operations hip04gic_ops = { .write_lr = hip04gic_write_lr, .read_vmcr_priority = hip04gic_read_vmcr_priority, .read_apr = hip04gic_read_apr, - .make_dt_node = hip04gic_make_dt_node, + .make_hwdom_dt_node = hip04gic_make_hwdom_dt_node, }; /* Set up the GIC */ diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c index edf659b..9e55b21 100644 --- a/xen/arch/arm/gic-v2.c +++ b/xen/arch/arm/gic-v2.c @@ -595,8 +595,9 @@ static void gicv2_irq_set_affinity(struct irq_desc *desc, const cpumask_t *cpu_m spin_unlock(&gicv2.lock); } -static int gicv2_make_dt_node(const struct domain *d, - const struct dt_device_node *node, void *fdt) +static int gicv2_make_hwdom_dt_node(const struct domain *d, + const struct dt_device_node *node, + void *fdt) { const struct dt_device_node *gic = dt_interrupt_controller; const void *compatible = NULL; @@ -754,7 +755,7 @@ const static struct gic_hw_operations gicv2_ops = { .write_lr = gicv2_write_lr, .read_vmcr_priority = gicv2_read_vmcr_priority, .read_apr = gicv2_read_apr, - .make_dt_node = gicv2_make_dt_node, + .make_hwdom_dt_node = gicv2_make_hwdom_dt_node, }; /* Set up the GIC */ diff --git a/xen/arch/arm/gic-v3.c b/xen/arch/arm/gic-v3.c index 30682cf..9a94f6b 100644 --- a/xen/arch/arm/gic-v3.c +++ b/xen/arch/arm/gic-v3.c @@ -1100,8 +1100,9 @@ static void gicv3_irq_set_affinity(struct irq_desc *desc, const cpumask_t *mask) spin_unlock(&gicv3.lock); } -static int gicv3_make_dt_node(const struct domain *d, - const struct dt_device_node *node, void *fdt) +static int gicv3_make_hwdom_dt_node(const struct domain *d, + const struct dt_device_node *node, + void *fdt) { const struct dt_device_node *gic = dt_interrupt_controller; const void *compatible = NULL; @@ -1323,7 +1324,7 @@ static const struct gic_hw_operations gicv3_ops = { .read_vmcr_priority = gicv3_read_vmcr_priority, .read_apr = gicv3_read_apr, .secondary_init = gicv3_secondary_cpu_init, - .make_dt_node = gicv3_make_dt_node, + .make_hwdom_dt_node = gicv3_make_hwdom_dt_node, }; static int __init gicv3_preinit(struct dt_device_node *node, const void *data) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index c41e82e..341b6df 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -706,10 +706,11 @@ void __cpuinit init_maintenance_interrupt(void) "irq-maintenance", NULL); } -int gic_make_node(const struct domain *d,const struct dt_device_node *node, - void *fdt) +int gic_make_hwdom_dt_node(const struct domain *d, + const struct dt_device_node *node, + void *fdt) { - return gic_hw_ops->make_dt_node(d, node, fdt); + return gic_hw_ops->make_hwdom_dt_node(d, node, fdt); } /* diff --git a/xen/include/asm-arm/gic.h b/xen/include/asm-arm/gic.h index f0dcfa1..71f4813 100644 --- a/xen/include/asm-arm/gic.h +++ b/xen/include/asm-arm/gic.h @@ -352,13 +352,14 @@ struct gic_hw_operations { unsigned int (*read_apr)(int apr_reg); /* Secondary CPU init */ int (*secondary_init)(void); - int (*make_dt_node)(const struct domain *d, - const struct dt_device_node *node, void *fdt); + int (*make_hwdom_dt_node)(const struct domain *d, + const struct dt_device_node *node, void *fdt); }; void register_gic_ops(const struct gic_hw_operations *ops); -int gic_make_node(const struct domain *d,const struct dt_device_node *node, - void *fdt); +int gic_make_hwdom_dt_node(const struct domain *d, + const struct dt_device_node *node, + void *fdt); #endif /* __ASSEMBLY__ */ #endif -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |