|
Hi All,
I have been trying to change the cache policy to write allocate for both
user and kernel
memory (i.e normal memory). I changed the cachepolicy variable in
arch/arm/mm/mmu.c,
but seems like it affects only MT_MEMORY i.e DOMAIN_KERNEL
What changes would be required to change cache policy for DOMAIN_USER also
to write-alloc or is there any reason it is not recommended.
I also found the below comment in mmu.c file, does this mean user memory
is always marked write-through.
380 #ifndef CONFIG_SMP
381 /*
382 * Only use write-through for non-SMP systems
383 */
384 if (cpu_arch = CPU_ARCH_ARMv5 && cachepolicy
CPOLICY_WRITETHROUGH)
385 vecs_pgprot = cache_policies[CPOLICY_WRITETHROUGH].pte;
386 #endif
Thanks
Hemanth
-------------------------------------------------------------------
List admin: rel="nofollow" lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: rel="nofollow" www.arm.linux.org.uk/mailinglists/faq.php www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: rel="nofollow" www.arm.linux.org.uk/mailinglists/etiquette.php www.arm.linux.org.uk/mailinglists/etiquette.php
|