Commit ed76c07
printk: Introduce FORCE_CON flag
Introduce FORCE_CON flag to printk. The new flag will make it possible to
create a context where printk messages will never be suppressed.
This mechanism will be used in the next patch to create a force_con
context on sysrq handling, removing an existing workaround on the
loglevel global variable. The workaround existed to make sure that sysrq
header messages were sent to all consoles, but this doesn't work with
deferred messages because the loglevel might be restored to its original
value before a console flushes the messages.
Signed-off-by: Marcos Paulo de Souza <[email protected]>
Reviewed-by: John Ogness <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Mladek <[email protected]>1 parent c903327 commit ed76c07
File tree
4 files changed
+40
-5
lines changed- include/linux
- kernel/printk
4 files changed
+40
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
| 1322 | + | |
| 1323 | + | |
1322 | 1324 | | |
1323 | | - | |
1324 | | - | |
| 1325 | + | |
1325 | 1326 | | |
1326 | | - | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
| |||
2273 | 2273 | | |
2274 | 2274 | | |
2275 | 2275 | | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
2276 | 2279 | | |
2277 | 2280 | | |
2278 | 2281 | | |
2279 | 2282 | | |
2280 | 2283 | | |
2281 | 2284 | | |
2282 | 2285 | | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
2283 | 2289 | | |
2284 | 2290 | | |
2285 | 2291 | | |
| |||
2947 | 2953 | | |
2948 | 2954 | | |
2949 | 2955 | | |
| 2956 | + | |
2950 | 2957 | | |
2951 | 2958 | | |
2952 | 2959 | | |
| |||
2965 | 2972 | | |
2966 | 2973 | | |
2967 | 2974 | | |
| 2975 | + | |
2968 | 2976 | | |
2969 | | - | |
2970 | | - | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
2971 | 2982 | | |
2972 | 2983 | | |
2973 | 2984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
15 | 33 | | |
16 | 34 | | |
17 | 35 | | |
| |||
0 commit comments