Skip to content

Commit c25ecd0

Browse files
committed
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
2 parents 190683a + 9457b24 commit c25ecd0

380 files changed

Lines changed: 8964 additions & 2730 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
What: /proc/<pid>/oom_adj
2+
When: August 2012
3+
Why: /proc/<pid>/oom_adj allows userspace to influence the oom killer's
4+
badness heuristic used to determine which task to kill when the kernel
5+
is out of memory.
6+
7+
The badness heuristic has since been rewritten since the introduction of
8+
this tunable such that its meaning is deprecated. The value was
9+
implemented as a bitshift on a score generated by the badness()
10+
function that did not have any precise units of measure. With the
11+
rewrite, the score is given as a proportion of available memory to the
12+
task allocating pages, so using a bitshift which grows the score
13+
exponentially is, thus, impossible to tune with fine granularity.
14+
15+
A much more powerful interface, /proc/<pid>/oom_score_adj, was
16+
introduced with the oom killer rewrite that allows users to increase or
17+
decrease the badness() score linearly. This interface will replace
18+
/proc/<pid>/oom_adj.
19+
20+
A warning will be emitted to the kernel log if an application uses this
21+
deprecated interface. After it is printed once, future warnings will be
22+
suppressed until the kernel is rebooted.

‎Documentation/block/switching-sched.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ you can do so by typing:
1616
As of the Linux 2.6.10 kernel, it is now possible to change the
1717
IO scheduler for a given block device on the fly (thus making it possible,
1818
for instance, to set the CFQ scheduler for the system default, but
19-
set a specific device to use the anticipatory or noop schedulers - which
19+
set a specific device to use the deadline or noop schedulers - which
2020
can improve that device's throughput).
2121

2222
To set a specific scheduler, simply do this:
@@ -31,7 +31,7 @@ a "cat /sys/block/DEV/queue/scheduler" - the list of valid names
3131
will be displayed, with the currently selected scheduler in brackets:
3232

3333
# cat /sys/block/hda/queue/scheduler
34-
noop anticipatory deadline [cfq]
35-
# echo anticipatory > /sys/block/hda/queue/scheduler
34+
noop deadline [cfq]
35+
# echo deadline > /sys/block/hda/queue/scheduler
3636
# cat /sys/block/hda/queue/scheduler
37-
noop [anticipatory] deadline cfq
37+
noop [deadline] cfq

‎Documentation/filesystems/xfs-delayed-logging-design.txt‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -794,17 +794,6 @@ designed.
794794

795795
Roadmap:
796796

797-
2.6.37 Remove experimental tag from mount option
798-
=> should be roughly 6 months after initial merge
799-
=> enough time to:
800-
=> gain confidence and fix problems reported by early
801-
adopters (a.k.a. guinea pigs)
802-
=> address worst performance regressions and undesired
803-
behaviours
804-
=> start tuning/optimising code for parallelism
805-
=> start tuning/optimising algorithms consuming
806-
excessive CPU time
807-
808797
2.6.39 Switch default mount option to use delayed logging
809798
=> should be roughly 12 months after initial merge
810799
=> enough time to shake out remaining problems before next round of

‎Documentation/kernel-parameters.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ and is between 256 and 4096 characters. It is defined in the file
706706
arch/x86/kernel/cpu/cpufreq/elanfreq.c.
707707

708708
elevator= [IOSCHED]
709-
Format: {"anticipatory" | "cfq" | "deadline" | "noop"}
709+
Format: {"cfq" | "deadline" | "noop"}
710710
See Documentation/block/as-iosched.txt and
711711
Documentation/block/deadline-iosched.txt for details.
712712

‎Documentation/leds-class.txt‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,18 @@ Hardware accelerated blink of LEDs
6060

6161
Some LEDs can be programmed to blink without any CPU interaction. To
6262
support this feature, a LED driver can optionally implement the
63-
blink_set() function (see <linux/leds.h>). If implemented, triggers can
64-
attempt to use it before falling back to software timers. The blink_set()
65-
function should return 0 if the blink setting is supported, or -EINVAL
66-
otherwise, which means that LED blinking will be handled by software.
67-
68-
The blink_set() function should choose a user friendly blinking
69-
value if it is called with *delay_on==0 && *delay_off==0 parameters. In
70-
this case the driver should give back the chosen value through delay_on
71-
and delay_off parameters to the leds subsystem.
63+
blink_set() function (see <linux/leds.h>). To set an LED to blinking,
64+
however, it is better to use use the API function led_blink_set(),
65+
as it will check and implement software fallback if necessary.
66+
67+
To turn off blinking again, use the API function led_brightness_set()
68+
as that will not just set the LED brightness but also stop any software
69+
timers that may have been required for blinking.
70+
71+
The blink_set() function should choose a user friendly blinking value
72+
if it is called with *delay_on==0 && *delay_off==0 parameters. In this
73+
case the driver should give back the chosen value through delay_on and
74+
delay_off parameters to the leds subsystem.
7275

7376
Setting the brightness to zero with brightness_set() callback function
7477
should completely turn off the LED and cancel the previously programmed

‎Documentation/leds/leds-lp5521.txt‎

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
Kernel driver for lp5521
2+
========================
3+
4+
* National Semiconductor LP5521 led driver chip
5+
* Datasheet: http://www.national.com/pf/LP/LP5521.html
6+
7+
Authors: Mathias Nyman, Yuri Zaporozhets, Samu Onkalo
8+
Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com)
9+
10+
Description
11+
-----------
12+
13+
LP5521 can drive up to 3 channels. Leds can be controlled directly via
14+
the led class control interface. Channels have generic names:
15+
lp5521:channelx, where x is 0 .. 2
16+
17+
All three channels can be also controlled using the engine micro programs.
18+
More details of the instructions can be found from the public data sheet.
19+
20+
Control interface for the engines:
21+
x is 1 .. 3
22+
enginex_mode : disabled, load, run
23+
enginex_load : store program (visible only in engine load mode)
24+
25+
Example (start to blink the channel 2 led):
26+
cd /sys/class/leds/lp5521:channel2/device
27+
echo "load" > engine3_mode
28+
echo "037f4d0003ff6000" > engine3_load
29+
echo "run" > engine3_mode
30+
31+
stop the engine:
32+
echo "disabled" > engine3_mode
33+
34+
sysfs contains a selftest entry.
35+
The test communicates with the chip and checks that
36+
the clock mode is automatically set to the requested one.
37+
38+
Each channel has its own led current settings.
39+
/sys/class/leds/lp5521:channel0/led_current - RW
40+
/sys/class/leds/lp5521:channel0/max_current - RO
41+
Format: 10x mA i.e 10 means 1.0 mA
42+
43+
example platform data:
44+
45+
Note: chan_nr can have values between 0 and 2.
46+
47+
static struct lp5521_led_config lp5521_led_config[] = {
48+
{
49+
.chan_nr = 0,
50+
.led_current = 50,
51+
.max_current = 130,
52+
}, {
53+
.chan_nr = 1,
54+
.led_current = 0,
55+
.max_current = 130,
56+
}, {
57+
.chan_nr = 2,
58+
.led_current = 0,
59+
.max_current = 130,
60+
}
61+
};
62+
63+
static int lp5521_setup(void)
64+
{
65+
/* setup HW resources */
66+
}
67+
68+
static void lp5521_release(void)
69+
{
70+
/* Release HW resources */
71+
}
72+
73+
static void lp5521_enable(bool state)
74+
{
75+
/* Control of chip enable signal */
76+
}
77+
78+
static struct lp5521_platform_data lp5521_platform_data = {
79+
.led_config = lp5521_led_config,
80+
.num_channels = ARRAY_SIZE(lp5521_led_config),
81+
.clock_mode = LP5521_CLOCK_EXT,
82+
.setup_resources = lp5521_setup,
83+
.release_resources = lp5521_release,
84+
.enable = lp5521_enable,
85+
};
86+
87+
If the current is set to 0 in the platform data, that channel is
88+
disabled and it is not visible in the sysfs.

‎Documentation/leds/leds-lp5523.txt‎

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
Kernel driver for lp5523
2+
========================
3+
4+
* National Semiconductor LP5523 led driver chip
5+
* Datasheet: http://www.national.com/pf/LP/LP5523.html
6+
7+
Authors: Mathias Nyman, Yuri Zaporozhets, Samu Onkalo
8+
Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com)
9+
10+
Description
11+
-----------
12+
LP5523 can drive up to 9 channels. Leds can be controlled directly via
13+
the led class control interface. Channels have generic names:
14+
lp5523:channelx where x is 0...8
15+
16+
The chip provides 3 engines. Each engine can control channels without
17+
interaction from the main CPU. Details of the micro engine code can be found
18+
from the public data sheet. Leds can be muxed to different channels.
19+
20+
Control interface for the engines:
21+
x is 1 .. 3
22+
enginex_mode : disabled, load, run
23+
enginex_load : microcode load (visible only in load mode)
24+
enginex_leds : led mux control (visible only in load mode)
25+
26+
cd /sys/class/leds/lp5523:channel2/device
27+
echo "load" > engine3_mode
28+
echo "9d80400004ff05ff437f0000" > engine3_load
29+
echo "111111111" > engine3_leds
30+
echo "run" > engine3_mode
31+
32+
sysfs contains a selftest entry. It measures each channel
33+
voltage level and checks if it looks reasonable. If the level is too high,
34+
the led is missing; if the level is too low, there is a short circuit.
35+
36+
Selftest uses always the current from the platform data.
37+
38+
Each channel contains led current settings.
39+
/sys/class/leds/lp5523:channel2/led_current - RW
40+
/sys/class/leds/lp5523:channel2/max_current - RO
41+
Format: 10x mA i.e 10 means 1.0 mA
42+
43+
Example platform data:
44+
45+
Note - chan_nr can have values between 0 and 8.
46+
47+
static struct lp5523_led_config lp5523_led_config[] = {
48+
{
49+
.chan_nr = 0,
50+
.led_current = 50,
51+
.max_current = 130,
52+
},
53+
...
54+
}, {
55+
.chan_nr = 8,
56+
.led_current = 50,
57+
.max_current = 130,
58+
}
59+
};
60+
61+
static int lp5523_setup(void)
62+
{
63+
/* Setup HW resources */
64+
}
65+
66+
static void lp5523_release(void)
67+
{
68+
/* Release HW resources */
69+
}
70+
71+
static void lp5523_enable(bool state)
72+
{
73+
/* Control chip enable signal */
74+
}
75+
76+
static struct lp5523_platform_data lp5523_platform_data = {
77+
.led_config = lp5523_led_config,
78+
.num_channels = ARRAY_SIZE(lp5523_led_config),
79+
.clock_mode = LP5523_CLOCK_EXT,
80+
.setup_resources = lp5523_setup,
81+
.release_resources = lp5523_release,
82+
.enable = lp5523_enable,
83+
};

‎Documentation/networking/ip-sysctl.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ ip_no_pmtu_disc - BOOLEAN
2020
min_pmtu - INTEGER
2121
default 562 - minimum discovered Path MTU
2222

23+
route/max_size - INTEGER
24+
Maximum number of routes allowed in the kernel. Increase
25+
this when using large numbers of interfaces and/or routes.
26+
27+
neigh/default/gc_thresh3 - INTEGER
28+
Maximum number of neighbor entries allowed. Increase this
29+
when using large numbers of interfaces and when communicating
30+
with large numbers of directly-connected peers.
31+
2332
mtu_expires - INTEGER
2433
Time, in seconds, that cached PMTU information is kept.
2534

‎Documentation/rbtree.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ three rotations, respectively, to balance the tree), with slightly slower
2121
To quote Linux Weekly News:
2222

2323
There are a number of red-black trees in use in the kernel.
24-
The anticipatory, deadline, and CFQ I/O schedulers all employ
25-
rbtrees to track requests; the packet CD/DVD driver does the same.
24+
The deadline and CFQ I/O schedulers employ rbtrees to
25+
track requests; the packet CD/DVD driver does the same.
2626
The high-resolution timer code uses an rbtree to organize outstanding
2727
timer requests. The ext3 filesystem tracks directory entries in a
2828
red-black tree. Virtual memory areas (VMAs) are tracked with red-black

‎Documentation/sysctl/kernel.txt‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ show up in /proc/sys/kernel:
2828
- core_uses_pid
2929
- ctrl-alt-del
3030
- dentry-state
31+
- dmesg_restrict
3132
- domainname
3233
- hostname
3334
- hotplug
@@ -213,6 +214,19 @@ to decide what to do with it.
213214

214215
==============================================================
215216

217+
dmesg_restrict:
218+
219+
This toggle indicates whether unprivileged users are prevented from using
220+
dmesg(8) to view messages from the kernel's log buffer. When
221+
dmesg_restrict is set to (0) there are no restrictions. When
222+
dmesg_restrict is set set to (1), users must have CAP_SYS_ADMIN to use
223+
dmesg(8).
224+
225+
The kernel config option CONFIG_SECURITY_DMESG_RESTRICT sets the default
226+
value of dmesg_restrict.
227+
228+
==============================================================
229+
216230
domainname & hostname:
217231

218232
These files can be used to set the NIS/YP domainname and the

0 commit comments

Comments
 (0)