Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / kernel / Kconfig.preempt
1 config PREEMPT
2         bool
3         select PREEMPT_COUNT
4
5 config PREEMPT_RT_BASE
6         bool
7         select PREEMPT
8
9 config HAVE_PREEMPT_LAZY
10         bool
11
12 config PREEMPT_LAZY
13         def_bool y if HAVE_PREEMPT_LAZY && PREEMPT_RT_FULL
14
15 choice
16         prompt "Preemption Model"
17         default PREEMPT_NONE
18
19 config PREEMPT_NONE
20         bool "No Forced Preemption (Server)"
21         help
22           This is the traditional Linux preemption model, geared towards
23           throughput. It will still provide good latencies most of the
24           time, but there are no guarantees and occasional longer delays
25           are possible.
26
27           Select this option if you are building a kernel for a server or
28           scientific/computation system, or if you want to maximize the
29           raw processing power of the kernel, irrespective of scheduling
30           latencies.
31
32 config PREEMPT_VOLUNTARY
33         bool "Voluntary Kernel Preemption (Desktop)"
34         help
35           This option reduces the latency of the kernel by adding more
36           "explicit preemption points" to the kernel code. These new
37           preemption points have been selected to reduce the maximum
38           latency of rescheduling, providing faster application reactions,
39           at the cost of slightly lower throughput.
40
41           This allows reaction to interactive events by allowing a
42           low priority process to voluntarily preempt itself even if it
43           is in kernel mode executing a system call. This allows
44           applications to run more 'smoothly' even when the system is
45           under load.
46
47           Select this if you are building a kernel for a desktop system.
48
49 config PREEMPT__LL
50         bool "Preemptible Kernel (Low-Latency Desktop)"
51         select PREEMPT
52         select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK
53         help
54           This option reduces the latency of the kernel by making
55           all kernel code (that is not executing in a critical section)
56           preemptible.  This allows reaction to interactive events by
57           permitting a low priority process to be preempted involuntarily
58           even if it is in kernel mode executing a system call and would
59           otherwise not be about to reach a natural preemption point.
60           This allows applications to run more 'smoothly' even when the
61           system is under load, at the cost of slightly lower throughput
62           and a slight runtime overhead to kernel code.
63
64           Select this if you are building a kernel for a desktop or
65           embedded system with latency requirements in the milliseconds
66           range.
67
68 config PREEMPT_RTB
69         bool "Preemptible Kernel (Basic RT)"
70         select PREEMPT_RT_BASE
71         help
72           This option is basically the same as (Low-Latency Desktop) but
73           enables changes which are preliminary for the full preemptible
74           RT kernel.
75
76 config PREEMPT_RT_FULL
77         bool "Fully Preemptible Kernel (RT)"
78         depends on IRQ_FORCED_THREADING
79         select PREEMPT_RT_BASE
80         select PREEMPT_RCU
81         help
82           All and everything
83
84 endchoice
85
86 config PREEMPT_COUNT
87        bool