public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Dynamically determine if kernel includes CFS Scheduler
@ 2009-03-06 20:44 Darren Hart
  2009-03-06 21:01 ` Peter Zijlstra
  2009-03-06 22:53 ` Sitsofe Wheeler
  0 siblings, 2 replies; 6+ messages in thread
From: Darren Hart @ 2009-03-06 20:44 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: Ingo Molnar, lkml, 

I've received an internal request for a means to determine at run-time 
if the CFS scheduler is included in the running kernel.  Looking through 
the git commit log and the /proc/sys/kernel filesystem, I think I see 
two approaches:

1) stat("/proc/sys/kernel/sched_compat_yield")
    This confirms 2.6.23-rc7 kernel or later which definitely has the CFS
    scheduler and this functionality is of interest anyway.
2) Test if the kernel version is >= 2.6.22 which is where I believe CFS
    landed.

Any guesses as to how robust/future-proof approach #1 would be?

-- 
Darren Hart
IBM Linux Technology Center
Real-Time Linux Team

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-07  0:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06 20:44 Dynamically determine if kernel includes CFS Scheduler Darren Hart
2009-03-06 21:01 ` Peter Zijlstra
2009-03-06 22:53 ` Sitsofe Wheeler
2009-03-06 23:01   ` Darren Hart
2009-03-06 23:08     ` Sitsofe Wheeler
2009-03-07  0:17       ` Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox