Răsfoiți Sursa

MIPS: mark R4K clockevent device with CLOCK_EVT_FEAT_C3STOP

When a core enters a clock off or power down state its CP0 counter will
be stopped along with it.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Paul Burton 11 ani în urmă
părinte
comite
5977d682d2
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      arch/mips/kernel/cevt-r4k.c

+ 2 - 1
arch/mips/kernel/cevt-r4k.c

@@ -195,7 +195,8 @@ int r4k_clockevent_init(void)
 	cd = &per_cpu(mips_clockevent_device, cpu);
 	cd = &per_cpu(mips_clockevent_device, cpu);
 
 
 	cd->name		= "MIPS";
 	cd->name		= "MIPS";
-	cd->features		= CLOCK_EVT_FEAT_ONESHOT;
+	cd->features		= CLOCK_EVT_FEAT_ONESHOT |
+				  CLOCK_EVT_FEAT_C3STOP;
 
 
 	clockevent_set_clock(cd, mips_hpt_frequency);
 	clockevent_set_clock(cd, mips_hpt_frequency);