[xtensa-cvscommit] linux/arch/xtensa/mm cache.c,1.1,1.2 mmu.c,1.3,1.4
Brought to you by:
zankel
|
From: <joe...@us...> - 2003-01-20 22:44:20
|
Update of /cvsroot/xtensa/linux/arch/xtensa/mm
In directory sc8-pr-cvs1:/tmp/cvs-serv15600/arch/xtensa/mm
Modified Files:
cache.c mmu.c
Log Message:
Mnemonic constants are better than hard-coded values. Change 0 to NO_CONTEXT in several places.
Index: cache.c
===================================================================
RCS file: /cvsroot/xtensa/linux/arch/xtensa/mm/cache.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** cache.c 17 Jan 2003 00:31:30 -0000 1.1
--- cache.c 20 Jan 2003 22:44:16 -0000 1.2
***************
*** 50,54 ****
void flush_cache_mm(struct mm_struct *mm)
{
! if (mm && mm->context != 0) {
#ifdef DEBUG_CACHE
--- 50,54 ----
void flush_cache_mm(struct mm_struct *mm)
{
! if (mm && mm->context != NO_CONTEXT) {
#ifdef DEBUG_CACHE
***************
*** 68,72 ****
struct vm_area_struct *vma;
! if (!mm || mm->context == 0)
return;
--- 68,72 ----
struct vm_area_struct *vma;
! if (!mm || mm->context == NO_CONTEXT)
return;
***************
*** 97,101 ****
unsigned long flags;
! if (!mm || mm->context == 0)
return;
--- 97,101 ----
unsigned long flags;
! if (!mm || mm->context == NO_CONTEXT)
return;
***************
*** 125,129 ****
unsigned long start;
! if (!mm || mm->context == 0)
return;
--- 125,129 ----
unsigned long start;
! if (!mm || mm->context == NO_CONTEXT)
return;
Index: mmu.c
===================================================================
RCS file: /cvsroot/xtensa/linux/arch/xtensa/mm/mmu.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** mmu.c 22 Oct 2002 17:59:46 -0000 1.3
--- mmu.c 20 Jan 2003 22:44:16 -0000 1.4
***************
*** 36,40 ****
void flush_tlb_mm (struct mm_struct *mm)
{
! if (mm->context != 0) {
unsigned long flags;
--- 36,40 ----
void flush_tlb_mm (struct mm_struct *mm)
{
! if (mm->context != NO_CONTEXT) {
unsigned long flags;
***************
*** 53,57 ****
void flush_tlb_range (struct mm_struct *mm, unsigned long start, unsigned long end)
{
! if (mm->context != 0) {
unsigned long flags;
int size;
--- 53,57 ----
void flush_tlb_range (struct mm_struct *mm, unsigned long start, unsigned long end)
{
! if (mm->context != NO_CONTEXT) {
unsigned long flags;
int size;
***************
*** 87,91 ****
void flush_tlb_page (struct vm_area_struct *vma, unsigned long page)
{
! if(vma->vm_mm->context != 0) {
unsigned long flags;
int oldpid;
--- 87,91 ----
void flush_tlb_page (struct vm_area_struct *vma, unsigned long page)
{
! if(vma->vm_mm->context != NO_CONTEXT) {
unsigned long flags;
int oldpid;
|