sched: Make sched_class::get_rr_interval() optional
authorPeter Zijlstra <peterz@infradead.org>
Mon, 27 Jan 2014 10:54:13 +0000 (11:54 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 Jan 2014 12:08:41 +0000 (13:08 +0100)
commita57beec5d427086cdc8d75fd51164577193fa7f4
tree86bbff9570824031ec4bd42bfd5dd11e4b825a55
parent712e5e34aef449ab680b35c0d9016f59b0a4494c
sched: Make sched_class::get_rr_interval() optional

Not all classes implement (or can implement) a useful get_rr_interval()
function, default to a 0 time-slice for them.

This fixes a crash reported by Tommi Rantala.

Reported-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Dave Jones <davej@redhat.com>
Cc: Tommi Rantala <tt.rantala@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140127105413.GC11314@laptop.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c