diff options
author | Patrick McHardy <kaber@trash.net> | 2007-03-16 04:18:42 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:26:04 -0400 |
commit | 641b9e0e8b7f96425da6ce98f3361e3af0baee29 (patch) | |
tree | 2315fed3b4fd9df52a52464b9b1ce1561d403a87 /net/sched/Kconfig | |
parent | ddc7b8e32b22fe8b45d306b7d99472d4b560add6 (diff) |
[NET_SCHED]: Use ktime as clocksource
Get rid of the manual clock source selection mess and use ktime. Also
use a scalar representation, which allows to clean up pkt_sched.h a bit
more and results in less ktime_to_ns() calls in most cases.
The PSCHED_US2JIFFIE/PSCHED_JIFFIE2US macros are implemented quite
inefficient by this patch, following patches will convert all qdiscs
to hrtimers and get rid of them entirely.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/Kconfig')
-rw-r--r-- | net/sched/Kconfig | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/net/sched/Kconfig b/net/sched/Kconfig index f4544dd86476..475df8449be9 100644 --- a/net/sched/Kconfig +++ b/net/sched/Kconfig | |||
@@ -46,62 +46,6 @@ config NET_SCH_FIFO | |||
46 | 46 | ||
47 | if NET_SCHED | 47 | if NET_SCHED |
48 | 48 | ||
49 | choice | ||
50 | prompt "Packet scheduler clock source" | ||
51 | default NET_SCH_CLK_GETTIMEOFDAY | ||
52 | ---help--- | ||
53 | Packet schedulers need a monotonic clock that increments at a static | ||
54 | rate. The kernel provides several suitable interfaces, each with | ||
55 | different properties: | ||
56 | |||
57 | - high resolution (us or better) | ||
58 | - fast to read (minimal locking, no i/o access) | ||
59 | - synchronized on all processors | ||
60 | - handles cpu clock frequency changes | ||
61 | |||
62 | but nothing provides all of the above. | ||
63 | |||
64 | config NET_SCH_CLK_JIFFIES | ||
65 | bool "Timer interrupt" | ||
66 | ---help--- | ||
67 | Say Y here if you want to use the timer interrupt (jiffies) as clock | ||
68 | source. This clock source is fast, synchronized on all processors and | ||
69 | handles cpu clock frequency changes, but its resolution is too low | ||
70 | for accurate shaping except at very low speed. | ||
71 | |||
72 | config NET_SCH_CLK_GETTIMEOFDAY | ||
73 | bool "gettimeofday" | ||
74 | ---help--- | ||
75 | Say Y here if you want to use gettimeofday as clock source. This clock | ||
76 | source has high resolution, is synchronized on all processors and | ||
77 | handles cpu clock frequency changes, but it is slow. | ||
78 | |||
79 | Choose this if you need a high resolution clock source but can't use | ||
80 | the CPU's cycle counter. | ||
81 | |||
82 | # don't allow on SMP x86 because they can have unsynchronized TSCs. | ||
83 | # gettimeofday is a good alternative | ||
84 | config NET_SCH_CLK_CPU | ||
85 | bool "CPU cycle counter" | ||
86 | depends on ((X86_TSC || X86_64) && !SMP) || ALPHA || SPARC64 || PPC64 || IA64 | ||
87 | ---help--- | ||
88 | Say Y here if you want to use the CPU's cycle counter as clock source. | ||
89 | This is a cheap and high resolution clock source, but on some | ||
90 | architectures it is not synchronized on all processors and doesn't | ||
91 | handle cpu clock frequency changes. | ||
92 | |||
93 | The useable cycle counters are: | ||
94 | |||
95 | x86/x86_64 - Timestamp Counter | ||
96 | alpha - Cycle Counter | ||
97 | sparc64 - %ticks register | ||
98 | ppc64 - Time base | ||
99 | ia64 - Interval Time Counter | ||
100 | |||
101 | Choose this if your CPU's cycle counter is working properly. | ||
102 | |||
103 | endchoice | ||
104 | |||
105 | comment "Queueing/Scheduling" | 49 | comment "Queueing/Scheduling" |
106 | 50 | ||
107 | config NET_SCH_CBQ | 51 | config NET_SCH_CBQ |