<div style><br></div><div style>Can someone tell me why flush instruction cache @118 Line below, when switch_mm with thread migration from other ARM core.</div><div style><br></div><div style>107 static inline void</div><div style>
108 switch_mm(struct mm_struct *prev, struct mm_struct *next,</div><div style>109 struct task_struct *tsk)</div><div style>110 { </div><div style>111 #ifdef CONFIG_MMU</div><div style>112 unsigned int cpu = smp_processor_id();</div>
<div style>113 </div><div style>114 #ifdef CONFIG_SMP</div><div style>115 /* check for possible thread migration */</div><div style>116 if (!cpumask_empty(mm_cpumask(next)) &&</div><div style>117 !cpumask_test_cpu(cpu, mm_cpumask(next))) </div>
<div style>118 __flush_icache_all();</div><div style>119 #endif</div><div style>...</div><div style>130 #endif</div><div style>131 }</div>