Date:2012-05-22 14:35:58 (11 years 10 months ago)
Author:Maarten ter Huurne
Commit:262b3bcd3446e13241d20e9150f7fe0e08b73682
Message:Re-enable zram and zcache on MIPS.

This is still not portable, but at least we've got the zram swap feature
back now in OpenDingux.
Files: drivers/staging/zcache/Kconfig (1 diff)
drivers/staging/zram/Kconfig (1 diff)
drivers/staging/zsmalloc/Kconfig (1 diff)
drivers/staging/zsmalloc/zsmalloc-main.c (1 diff)

Change Details

drivers/staging/zcache/Kconfig
22    bool "Dynamic compression of swap pages and clean pagecache pages"
33    # X86 dependency is because zsmalloc uses non-portable pte/tlb
44    # functions
5    depends on (CLEANCACHE || FRONTSWAP) && CRYPTO=y && X86
5    depends on (CLEANCACHE || FRONTSWAP) && CRYPTO=y && (X86 || MIPS)
66    select ZSMALLOC
77    select CRYPTO_LZO
88    default n
drivers/staging/zram/Kconfig
22    tristate "Compressed RAM block device support"
33    # X86 dependency is because zsmalloc uses non-portable pte/tlb
44    # functions
5    depends on BLOCK && SYSFS && X86
5    depends on BLOCK && SYSFS && (X86 || MIPS)
66    select ZSMALLOC
77    select LZO_COMPRESS
88    select LZO_DECOMPRESS
drivers/staging/zsmalloc/Kconfig
33    # X86 dependency is because of the use of __flush_tlb_one and set_pte
44    # in zsmalloc-main.c.
55    # TODO: convert these to portable functions
6    depends on X86
6    depends on X86 || MIPS
77    default n
88    help
99      zsmalloc is a slab-based memory allocator designed to store
drivers/staging/zsmalloc/zsmalloc-main.c
731731    } else {
732732        set_pte(area->vm_ptes[0], __pte(0));
733733        set_pte(area->vm_ptes[1], __pte(0));
734#if defined(CONFIG_X86)
734735        __flush_tlb_one((unsigned long)area->vm_addr);
735736        __flush_tlb_one((unsigned long)area->vm_addr + PAGE_SIZE);
737#elif defined(CONFIG_MIPS)
738        flush_tlb_one((unsigned long)area->vm_addr);
739        flush_tlb_one((unsigned long)area->vm_addr + PAGE_SIZE);
740#else
741#error Unsupported arch.
742#endif
736743    }
737744    put_cpu_var(zs_map_area);
738745}

Archive Download the corresponding diff file



interactive