Re: [PATCH v2] powerpc/cache: add cache flush operation for various e500

From: Scott Wood
Date: Mon Jun 08 2015 - 16:36:35 EST


On Mon, 2015-06-08 at 18:06 +0800, Yuantian.Tang@xxxxxxxxxxxxx wrote:
> +
> +_GLOBAL(flush_caches_e500v2)
> + mflr r0
> + bl flush_dcache_L1
> + mtlr r0
> + blr
> +
> +_GLOBAL(flush_caches_e500mc)
> +_GLOBAL(flush_caches_e5500)
> + mflr r0
> + bl flush_dcache_L1
> + bl flush_backside_L2_cache
> + mtlr r0
> + blr

s/flush_caches/cpu_down_flush/g


> +
> +/* L1 Data Cache of e6500 contains no modified data, no flush is
> required */
> +_GLOBAL(flush_caches_e6500)
> + blr
> diff --git a/arch/powerpc/kernel/cputable.c
> b/arch/powerpc/kernel/cputable.c
> index 60262fd..ed388c7 100644
> --- a/arch/powerpc/kernel/cputable.c
> +++ b/arch/powerpc/kernel/cputable.c
> @@ -2021,6 +2021,7 @@ static struct cpu_spec __initdata cpu_specs[] =
> {
> .cpu_setup = __setup_cpu_e500v2,
> .machine_check = machine_check_e500,
> .platform = "ppc8548",
> + .cpu_down_flush = flush_caches_e500v2,
> },
> #else
> { /* e500mc */
> @@ -2040,6 +2041,7 @@ static struct cpu_spec __initdata cpu_specs[] =
> {
> .cpu_setup = __setup_cpu_e500mc,
> .machine_check = machine_check_e500mc,
> .platform = "ppce500mc",
> + .cpu_down_flush = flush_caches_e500mc,
> },

Please keep whitespace consistent with the rest of the structure.

-Scott

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/