From: Suresh Jayaraman <sjayaraman@suse.de>
Subject: [PATCH] automate config options for kernel-desktop
References: FATE#305694
Patch-mainline: Never

Automate the desktop only kernel configuration options with the new
CONFIG_KERNEL_DESKTOP.

Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
---
 init/Kconfig           |    5 ++++-
 kernel/Kconfig.hz      |    1 +
 kernel/Kconfig.preempt |    1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

Index: linux-3.0-tmp-jikos/init/Kconfig
===================================================================
--- linux-3.0-tmp-jikos.orig/init/Kconfig
+++ linux-3.0-tmp-jikos/init/Kconfig
@@ -608,6 +608,8 @@ config HAVE_UNSTABLE_SCHED_CLOCK
 menuconfig CGROUPS
 	boolean "Control Group support"
 	depends on EVENTFD
+	default n if KERNEL_DESKTOP
+	default y
 	help
 	  This option adds support for grouping sets of processes together, for
 	  use with process control subsystems such as Cpusets, CFS, memory
@@ -737,7 +739,8 @@ config CGROUP_PERF
 menuconfig CGROUP_SCHED
 	bool "Group CPU scheduler"
 	depends on EXPERIMENTAL
-	default n
+	default n if KERNEL_DESKTOP
+	default y
 	help
 	  This feature lets CPU scheduler recognize task groups and control CPU
 	  bandwidth allocation to such task groups. It uses cgroups to group
Index: linux-3.0-tmp-jikos/kernel/Kconfig.hz
===================================================================
--- linux-3.0-tmp-jikos.orig/kernel/Kconfig.hz
+++ linux-3.0-tmp-jikos/kernel/Kconfig.hz
@@ -4,6 +4,7 @@
 
 choice
 	prompt "Timer frequency"
+	default HZ_1000 if KERNEL_DESKTOP
 	default HZ_250
 	help
 	 Allows the configuration of the timer frequency. It is customary
Index: linux-3.0-tmp-jikos/kernel/Kconfig.preempt
===================================================================
--- linux-3.0-tmp-jikos.orig/kernel/Kconfig.preempt
+++ linux-3.0-tmp-jikos/kernel/Kconfig.preempt
@@ -1,6 +1,7 @@
 
 choice
 	prompt "Preemption Model"
+	default PREEMPT if KERNEL_DESKTOP
 	default PREEMPT_NONE
 
 config PREEMPT_NONE
