]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
MIPS: MT: Remove unused MT single-threaded cache flush code
authorPaul Burton <paul.burton@mips.com>
Wed, 26 Sep 2018 20:56:51 +0000 (13:56 -0700)
committerPaul Burton <paul.burton@mips.com>
Wed, 26 Sep 2018 20:56:51 +0000 (13:56 -0700)
Commit ac41f9c46282 ("MIPS: Remove a temporary hack for debugging cache
flushes in SMTC configuration") removed an ugly hack that allowed cache
flushing to be performed single-threaded, something which should not be
necessary outside of debug sessions performed long ago.

Whilst the hack was removed from the cache flush code itself, the
mt_protdflush & mt_protiflush variables were left behind along with code
providing the protdflush & protiflush command line arguments. The
mt_cflush_lockdown() & mt_cflush_release() functions were also left
behind but are now entirely unused.

Remove all the unused code to complete the removal of the MT ASE
single-threaded cache flush hack.

Signed-off-by: Paul Burton <paul.burton@mips.com>
arch/mips/kernel/mips-mt.c

index efaa2527657dbda2723f87914eba66ec17d9de8b..f74f6f505b15b3083880b562b63f878b6c4b394c 100644 (file)
@@ -155,25 +155,9 @@ static int __init config7_set(char *str)
 __setup("config7=", config7_set);
 
 /* Experimental cache flush control parameters that should go away some day */
-int mt_protiflush;
-int mt_protdflush;
 int mt_n_iflushes = 1;
 int mt_n_dflushes = 1;
 
-static int __init set_protiflush(char *s)
-{
-       mt_protiflush = 1;
-       return 1;
-}
-__setup("protiflush", set_protiflush);
-
-static int __init set_protdflush(char *s)
-{
-       mt_protdflush = 1;
-       return 1;
-}
-__setup("protdflush", set_protdflush);
-
 static int __init niflush(char *s)
 {
        get_option(&s, &mt_n_iflushes);
@@ -233,10 +217,6 @@ void mips_mt_set_cpuoptions(void)
        }
 
        /* Report Cache management debug options */
-       if (mt_protiflush)
-               printk("I-cache flushes single-threaded\n");
-       if (mt_protdflush)
-               printk("D-cache flushes single-threaded\n");
        if (mt_n_iflushes != 1)
                printk("I-Cache Flushes Repeated %d times\n", mt_n_iflushes);
        if (mt_n_dflushes != 1)