per_cpu__ppc64_tlb_batch is only for 64 bit
PATCH 1/1 per_cpu__ppc64_tlb_batch is only for 64 bit
Fix the following compile error for powerpc32:
arch/powerpc/kernel/process.c: In function '__switch_to':arch/powerpc/kernel/process.c:355: error: 'per_cpu__ppc64_tlb_batch' undeclared (first use in this function)
Not sure what the code actually does, but as it was not there in -rc5, somebody else might find something ...
--- arch/powerpc/kernel/process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
arch/powerpc/kernel/process.c +5 -5
@@ -267,10 +267,10 @@ struct task_struct *__switch_to(struct tstruct thread_struct *new_thread, *old_thread;unsigned long flags;struct task_struct *last; -#ifdef CONFIG_PREEMPT_RT +#if defined(CONFIG_PPC64 ) && defined (CONFIG_PREEMPT_RT )struct ppc64_tlb_batch *batch;int hadbatch; -#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif #ifdef CONFIG_SMP /* avoid complexity of lazy save/restore of fpu
@@ -349,7 +349,6 @@ struct task_struct *__switch_to(struct t old_thread->accum_tb += (current_tb - start_tb); new_thread->start_tb = current_tb; } -#endif #ifdef CONFIG_PREEMPT_RT batch = &__get_cpu_var (ppc64_tlb_batch);
@@ -361,6 +360,7 @@ struct task_struct *__switch_to(struct t batch->active =0 ; }#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif local_irq_save (flags);
@@ -372,12 +372,12 @@ struct task_struct *__switch_to(struct tlocal_irq_restore (flags); -#ifdef CONFIG_PREEMPT_RT +#if defined(CONFIG_PPC64 ) && defined(CONFIG_PREEMPT_RT )if (hadbatch) { batch = &__get_cpu_var (ppc64_tlb_batch); batch->active =1 ; } -#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif return last; }
Hmm, I think this was caused by Paul's patch:
http://lkml.org/lkml/2007/12/13/5
I'll apply this too, unless Paul sees any reason not to.
-- Steve
Quoted 63 lines · Robert Schwebel
Fix the following compile error for powerpc32:
arch/powerpc/kernel/process.c: In function '__switch_to':arch/powerpc/kernel/process.c:355: error: 'per_cpu__ppc64_tlb_batch' undeclared (first use in this function)Not sure what the code actually does, but as it was not there in -rc5, somebody else might find something ...
Signed-off-by Robert Schwebel <[email protected]>--- arch/powerpc/kernel/process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Index:
linux-2.6.24-rc7/arch/powerpc/kernel/process.c
===================================================================arch/powerpc/kernel/process.c +5
-5@@ -267,10 +267,10 @@ struct task_struct *__switch_to(struct tstruct thread_struct *new_thread, *old_thread;unsigned long flags;struct task_struct *last; -#ifdef CONFIG_PREEMPT_RT +#if defined(CONFIG_PPC64 ) && defined (CONFIG_PREEMPT_RT )struct ppc64_tlb_batch *batch;int hadbatch; -#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif #ifdef CONFIG_SMP /* avoid complexity of lazy save/restore of fpu @@ -349,7 +349,6 @@ struct task_struct *__switch_to(struct t old_thread->accum_tb += (current_tb - start_tb); new_thread->start_tb = current_tb; } -#endif #ifdef CONFIG_PREEMPT_RT batch = &__get_cpu_var (ppc64_tlb_batch);@@ -361,6 +360,7 @@ struct task_struct *__switch_to(struct t batch->active =0 ; }#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif local_irq_save (flags);@@ -372,12 +372,12 @@ struct task_struct *__switch_to(struct tlocal_irq_restore (flags); -#ifdef CONFIG_PREEMPT_RT +#if defined(CONFIG_PPC64 ) && defined(CONFIG_PREEMPT_RT )if (hadbatch) { batch = &__get_cpu_var (ppc64_tlb_batch); batch->active =1 ; } -#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif return last; }
Quoted 7 lines · Steven Rostedt
Hmm, I think this was caused by Paul's patch:
http://lkml.org/lkml/2007/12/13/5
I'll apply this too, unless Paul sees any reason not to.
They look good to me -- apologies for the hassle, Robert!
Thanx, Paul
Quoted 68 lines
-- Steve
Quoted 63 lines · Robert Schwebel
Fix the following compile error for powerpc32:
arch/powerpc/kernel/process.c: In function '__switch_to':arch/powerpc/kernel/process.c:355: error: 'per_cpu__ppc64_tlb_batch' undeclared (first use in this function)Not sure what the code actually does, but as it was not there in -rc5, somebody else might find something ...
Signed-off-by Robert Schwebel <[email protected]>--- arch/powerpc/kernel/process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Index:
linux-2.6.24-rc7/arch/powerpc/kernel/process.c
===================================================================arch/powerpc/kernel/process.c +5
-5@@ -267,10 +267,10 @@ struct task_struct *__switch_to(struct tstruct thread_struct *new_thread, *old_thread;unsigned long flags;struct task_struct *last; -#ifdef CONFIG_PREEMPT_RT +#if defined(CONFIG_PPC64 ) && defined (CONFIG_PREEMPT_RT )struct ppc64_tlb_batch *batch;int hadbatch; -#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif #ifdef CONFIG_SMP /* avoid complexity of lazy save/restore of fpu @@ -349,7 +349,6 @@ struct task_struct *__switch_to(struct t old_thread->accum_tb += (current_tb - start_tb); new_thread->start_tb = current_tb; } -#endif #ifdef CONFIG_PREEMPT_RT batch = &__get_cpu_var (ppc64_tlb_batch);@@ -361,6 +360,7 @@ struct task_struct *__switch_to(struct t batch->active =0 ; }#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif local_irq_save (flags);@@ -372,12 +372,12 @@ struct task_struct *__switch_to(struct tlocal_irq_restore (flags); -#ifdef CONFIG_PREEMPT_RT +#if defined(CONFIG_PPC64 ) && defined(CONFIG_PREEMPT_RT )if (hadbatch) { batch = &__get_cpu_var (ppc64_tlb_batch); batch->active =1 ; } -#endif /* #ifdef CONFIG_PREEMPT_RT */ +#endif return last; }