• Paul Burton's avatar
    MIPS: Drop Loongson _CACHE_* definitions · 3d77a95f
    Paul Burton authored
    _CACHE_CACHABLE_NONCOHERENT is defined as 3<<_CACHE_SHIFT by default, so
    there's no need to define it as such specifically for Loongson.
    
    _CACHE_CACHABLE_COHERENT is not used anywhere in the kernel, so there's
    no need to define it at all.
    
    Finally the comment found alongside these definitions seems incorrect -
    it suggests that we're defining _CACHE_CACHABLE_NONCOHERENT such that it
    actually provides coherence, but the opposite seems to be true & instead
    the unused _CACHE_CACHABLE_COHERENT is defined as the typically
    incoherent value.
    
    Delete the whole thing, which will have no effect on the compiled code
    anyway.
    Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
    Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
    Reviewed-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
    Cc: Huacai Chen <chenhc@lemote.com>
    Cc: linux-mips@vger.kernel.org
    3d77a95f
pgtable-bits.h 7.12 KB