Skip to content

Commit 710d60c

Browse files
committed
Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull cpu hotplug updates from Thomas Gleixner: "This is the first part of the ongoing cpu hotplug rework: - Initial implementation of the state machine - Runs all online and prepare down callbacks on the plugged cpu and not on some random processor - Replaces busy loop waiting with completions - Adds tracepoints so the states can be followed" More detailed commentary on this work from an earlier email: "What's wrong with the current cpu hotplug infrastructure? - Asymmetry The hotplug notifier mechanism is asymmetric versus the bringup and teardown. This is mostly caused by the notifier mechanism. - Largely undocumented dependencies While some notifiers use explicitely defined notifier priorities, we have quite some notifiers which use numerical priorities to express dependencies without any documentation why. - Control processor driven Most of the bringup/teardown of a cpu is driven by a control processor. While it is understandable, that preperatory steps, like idle thread creation, memory allocation for and initialization of essential facilities needs to be done before a cpu can boot, there is no reason why everything else must run on a control processor. Before this patch series, bringup looks like this: Control CPU Booting CPU do preparatory steps kick cpu into life do low level init sync with booting cpu sync with control cpu bring the rest up - All or nothing approach There is no way to do partial bringups. That's something which is really desired because we waste e.g. at boot substantial amount of time just busy waiting that the cpu comes to life. That's stupid as we could very well do preparatory steps and the initial IPI for other cpus and then go back and do the necessary low level synchronization with the freshly booted cpu. - Minimal debuggability Due to the notifier based design, it's impossible to switch between two stages of the bringup/teardown back and forth in order to test the correctness. So in many hotplug notifiers the cancel mechanisms are either not existant or completely untested. - Notifier [un]registering is tedious To [un]register notifiers we need to protect against hotplug at every callsite. There is no mechanism that bringup/teardown callbacks are issued on the online cpus, so every caller needs to do it itself. That also includes error rollback. What's the new design? The base of the new design is a symmetric state machine, where both the control processor and the booting/dying cpu execute a well defined set of states. Each state is symmetric in the end, except for some well defined exceptions, and the bringup/teardown can be stopped and reversed at almost all states. So the bringup of a cpu will look like this in the future: Control CPU Booting CPU do preparatory steps kick cpu into life do low level init sync with booting cpu sync with control cpu bring itself up The synchronization step does not require the control cpu to wait. That mechanism can be done asynchronously via a worker or some other mechanism. The teardown can be made very similar, so that the dying cpu cleans up and brings itself down. Cleanups which need to be done after the cpu is gone, can be scheduled asynchronously as well. There is a long way to this, as we need to refactor the notion when a cpu is available. Today we set the cpu online right after it comes out of the low level bringup, which is not really correct. The proper mechanism is to set it to available, i.e. cpu local threads, like softirqd, hotplug thread etc. can be scheduled on that cpu, and once it finished all booting steps, it's set to online, so general workloads can be scheduled on it. The reverse happens on teardown. First thing to do is to forbid scheduling of general workloads, then teardown all the per cpu resources and finally shut it off completely. This patch series implements the basic infrastructure for this at the core level. This includes the following: - Basic state machine implementation with well defined states, so ordering and prioritization can be expressed. - Interfaces to [un]register state callbacks This invokes the bringup/teardown callback on all online cpus with the proper protection in place and [un]installs the callbacks in the state machine array. For callbacks which have no particular ordering requirement we have a dynamic state space, so that drivers don't have to register an explicit hotplug state. If a callback fails, the code automatically does a rollback to the previous state. - Sysfs interface to drive the state machine to a particular step. This is only partially functional today. Full functionality and therefor testability will be achieved once we converted all existing hotplug notifiers over to the new scheme. - Run all CPU_ONLINE/DOWN_PREPARE notifiers on the booting/dying processor: Control CPU Booting CPU do preparatory steps kick cpu into life do low level init sync with booting cpu sync with control cpu wait for boot bring itself up Signal completion to control cpu In a previous step of this work we've done a full tree mechanical conversion of all hotplug notifiers to the new scheme. The balance is a net removal of about 4000 lines of code. This is not included in this series, as we decided to take a different approach. Instead of mechanically converting everything over, we will do a proper overhaul of the usage sites one by one so they nicely fit into the symmetric callback scheme. I decided to do that after I looked at the ugliness of some of the converted sites and figured out that their hotplug mechanism is completely buggered anyway. So there is no point to do a mechanical conversion first as we need to go through the usage sites one by one again in order to achieve a full symmetric and testable behaviour" * 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (23 commits) cpu/hotplug: Document states better cpu/hotplug: Fix smpboot thread ordering cpu/hotplug: Remove redundant state check cpu/hotplug: Plug death reporting race rcu: Make CPU_DYING_IDLE an explicit call cpu/hotplug: Make wait for dead cpu completion based cpu/hotplug: Let upcoming cpu bring itself fully up arch/hotplug: Call into idle with a proper state cpu/hotplug: Move online calls to hotplugged cpu cpu/hotplug: Create hotplug threads cpu/hotplug: Split out the state walk into functions cpu/hotplug: Unpark smpboot threads from the state machine cpu/hotplug: Move scheduler cpu_online notifier to hotplug core cpu/hotplug: Implement setup/removal interface cpu/hotplug: Make target state writeable cpu/hotplug: Add sysfs state interface cpu/hotplug: Hand in target state to _cpu_up/down cpu/hotplug: Convert the hotplugged cpu work to a state machine cpu/hotplug: Convert to a state machine for the control processor cpu/hotplug: Add tracepoints ...
2 parents df2e37c + d10ef6f commit 710d60c

File tree

35 files changed

+1294
-236
lines changed

35 files changed

+1294
-236
lines changed

arch/alpha/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ smp_callin(void)
168168
cpuid, current, current->active_mm));
169169

170170
preempt_disable();
171-
cpu_startup_entry(CPUHP_ONLINE);
171+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
172172
}
173173

174174
/* Wait until hwrpb->txrdy is clear for cpu. Return -1 on timeout. */

arch/arc/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void start_kernel_secondary(void)
142142

143143
local_irq_enable();
144144
preempt_disable();
145-
cpu_startup_entry(CPUHP_ONLINE);
145+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
146146
}
147147

148148
/*

arch/arm/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ asmlinkage void secondary_start_kernel(void)
409409
/*
410410
* OK, it's off to the idle thread for us
411411
*/
412-
cpu_startup_entry(CPUHP_ONLINE);
412+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
413413
}
414414

415415
void __init smp_cpus_done(unsigned int max_cpus)

arch/arm64/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ asmlinkage void secondary_start_kernel(void)
195195
/*
196196
* OK, it's off to the idle thread for us
197197
*/
198-
cpu_startup_entry(CPUHP_ONLINE);
198+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
199199
}
200200

201201
#ifdef CONFIG_HOTPLUG_CPU

arch/blackfin/mach-common/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void secondary_start_kernel(void)
333333

334334
/* We are done with local CPU inits, unblock the boot CPU. */
335335
set_cpu_online(cpu, true);
336-
cpu_startup_entry(CPUHP_ONLINE);
336+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
337337
}
338338

339339
void __init smp_prepare_boot_cpu(void)

arch/hexagon/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void start_secondary(void)
180180

181181
local_irq_enable();
182182

183-
cpu_startup_entry(CPUHP_ONLINE);
183+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
184184
}
185185

186186

arch/ia64/kernel/smpboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ start_secondary (void *unused)
454454
preempt_disable();
455455
smp_callin();
456456

457-
cpu_startup_entry(CPUHP_ONLINE);
457+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
458458
return 0;
459459
}
460460

arch/m32r/kernel/smpboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ int __init start_secondary(void *unused)
432432
*/
433433
local_flush_tlb_all();
434434

435-
cpu_startup_entry(CPUHP_ONLINE);
435+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
436436
return 0;
437437
}
438438

arch/metag/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ asmlinkage void secondary_start_kernel(void)
396396
/*
397397
* OK, it's off to the idle thread for us
398398
*/
399-
cpu_startup_entry(CPUHP_ONLINE);
399+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
400400
}
401401

402402
void __init smp_cpus_done(unsigned int max_cpus)

arch/mips/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ asmlinkage void start_secondary(void)
328328
WARN_ON_ONCE(!irqs_disabled());
329329
mp_ops->smp_finish();
330330

331-
cpu_startup_entry(CPUHP_ONLINE);
331+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
332332
}
333333

334334
static void stop_this_cpu(void *dummy)

arch/mn10300/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ int __init start_secondary(void *unused)
675675
#ifdef CONFIG_GENERIC_CLOCKEVENTS
676676
init_clockevents();
677677
#endif
678-
cpu_startup_entry(CPUHP_ONLINE);
678+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
679679
return 0;
680680
}
681681

arch/parisc/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void __init smp_callin(void)
305305

306306
local_irq_enable(); /* Interrupts have been off until now */
307307

308-
cpu_startup_entry(CPUHP_ONLINE);
308+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
309309

310310
/* NOTREACHED */
311311
panic("smp_callin() AAAAaaaaahhhh....\n");

arch/powerpc/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ void start_secondary(void *unused)
727727

728728
local_irq_enable();
729729

730-
cpu_startup_entry(CPUHP_ONLINE);
730+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
731731

732732
BUG();
733733
}

arch/s390/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ static void smp_start_secondary(void *cpuvoid)
798798
set_cpu_online(smp_processor_id(), true);
799799
inc_irq_stat(CPU_RST);
800800
local_irq_enable();
801-
cpu_startup_entry(CPUHP_ONLINE);
801+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
802802
}
803803

804804
/* Upping and downing of CPUs */

arch/sh/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ asmlinkage void start_secondary(void)
203203
set_cpu_online(cpu, true);
204204
per_cpu(cpu_state, cpu) = CPU_ONLINE;
205205

206-
cpu_startup_entry(CPUHP_ONLINE);
206+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
207207
}
208208

209209
extern struct {

arch/sparc/kernel/smp_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static void sparc_start_secondary(void *arg)
364364
local_irq_enable();
365365

366366
wmb();
367-
cpu_startup_entry(CPUHP_ONLINE);
367+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
368368

369369
/* We should never reach here! */
370370
BUG();

arch/sparc/kernel/smp_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void smp_callin(void)
134134

135135
local_irq_enable();
136136

137-
cpu_startup_entry(CPUHP_ONLINE);
137+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
138138
}
139139

140140
void cpu_panic(void)

arch/tile/kernel/smpboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void online_secondary(void)
208208
/* Set up tile-timer clock-event device on this cpu */
209209
setup_tile_timer();
210210

211-
cpu_startup_entry(CPUHP_ONLINE);
211+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
212212
}
213213

214214
int __cpu_up(unsigned int cpu, struct task_struct *tidle)

arch/x86/kernel/smpboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static void notrace start_secondary(void *unused)
256256
x86_cpuinit.setup_percpu_clockev();
257257

258258
wmb();
259-
cpu_startup_entry(CPUHP_ONLINE);
259+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
260260
}
261261

262262
int topology_update_package_map(unsigned int apicid, unsigned int cpu)

arch/x86/xen/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ asmlinkage __visible void cpu_bringup_and_idle(int cpu)
112112
xen_pvh_secondary_vcpu_init(cpu);
113113
#endif
114114
cpu_bringup();
115-
cpu_startup_entry(CPUHP_ONLINE);
115+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
116116
}
117117

118118
static void xen_smp_intr_free(unsigned int cpu)

arch/xtensa/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void secondary_start_kernel(void)
157157

158158
complete(&cpu_running);
159159

160-
cpu_startup_entry(CPUHP_ONLINE);
160+
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
161161
}
162162

163163
static void mx_cpu_start(void *p)

include/linux/cpu.h

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/node.h>
1717
#include <linux/compiler.h>
1818
#include <linux/cpumask.h>
19+
#include <linux/cpuhotplug.h>
1920

2021
struct device;
2122
struct device_node;
@@ -27,6 +28,9 @@ struct cpu {
2728
struct device dev;
2829
};
2930

31+
extern void boot_cpu_init(void);
32+
extern void boot_cpu_state_init(void);
33+
3034
extern int register_cpu(struct cpu *cpu, int num);
3135
extern struct device *get_cpu_device(unsigned cpu);
3236
extern bool cpu_is_hotpluggable(unsigned cpu);
@@ -74,7 +78,7 @@ enum {
7478
/* migration should happen before other stuff but after perf */
7579
CPU_PRI_PERF = 20,
7680
CPU_PRI_MIGRATION = 10,
77-
CPU_PRI_SMPBOOT = 9,
81+
7882
/* bring up workqueues before normal notifiers and down after */
7983
CPU_PRI_WORKQUEUE_UP = 5,
8084
CPU_PRI_WORKQUEUE_DOWN = -5,
@@ -97,9 +101,7 @@ enum {
97101
* Called on the new cpu, just before
98102
* enabling interrupts. Must not sleep,
99103
* must not fail */
100-
#define CPU_DYING_IDLE 0x000B /* CPU (unsigned)v dying, reached
101-
* idle loop. */
102-
#define CPU_BROKEN 0x000C /* CPU (unsigned)v did not die properly,
104+
#define CPU_BROKEN 0x000B /* CPU (unsigned)v did not die properly,
103105
* perhaps due to preemption. */
104106

105107
/* Used for CPU hotplug events occurring while tasks are frozen due to a suspend
@@ -118,6 +120,7 @@ enum {
118120

119121

120122
#ifdef CONFIG_SMP
123+
extern bool cpuhp_tasks_frozen;
121124
/* Need to know about CPUs going up/down? */
122125
#if defined(CONFIG_HOTPLUG_CPU) || !defined(MODULE)
123126
#define cpu_notifier(fn, pri) { \
@@ -167,7 +170,6 @@ static inline void __unregister_cpu_notifier(struct notifier_block *nb)
167170
}
168171
#endif
169172

170-
void smpboot_thread_init(void);
171173
int cpu_up(unsigned int cpu);
172174
void notify_cpu_starting(unsigned int cpu);
173175
extern void cpu_maps_update_begin(void);
@@ -177,6 +179,7 @@ extern void cpu_maps_update_done(void);
177179
#define cpu_notifier_register_done cpu_maps_update_done
178180

179181
#else /* CONFIG_SMP */
182+
#define cpuhp_tasks_frozen 0
180183

181184
#define cpu_notifier(fn, pri) do { (void)(fn); } while (0)
182185
#define __cpu_notifier(fn, pri) do { (void)(fn); } while (0)
@@ -215,10 +218,6 @@ static inline void cpu_notifier_register_done(void)
215218
{
216219
}
217220

218-
static inline void smpboot_thread_init(void)
219-
{
220-
}
221-
222221
#endif /* CONFIG_SMP */
223222
extern struct bus_type cpu_subsys;
224223

@@ -265,11 +264,6 @@ static inline int disable_nonboot_cpus(void) { return 0; }
265264
static inline void enable_nonboot_cpus(void) {}
266265
#endif /* !CONFIG_PM_SLEEP_SMP */
267266

268-
enum cpuhp_state {
269-
CPUHP_OFFLINE,
270-
CPUHP_ONLINE,
271-
};
272-
273267
void cpu_startup_entry(enum cpuhp_state state);
274268

275269
void cpu_idle_poll_ctrl(bool enable);
@@ -280,14 +274,15 @@ void arch_cpu_idle_enter(void);
280274
void arch_cpu_idle_exit(void);
281275
void arch_cpu_idle_dead(void);
282276

283-
DECLARE_PER_CPU(bool, cpu_dead_idle);
284-
285277
int cpu_report_state(int cpu);
286278
int cpu_check_up_prepare(int cpu);
287279
void cpu_set_state_online(int cpu);
288280
#ifdef CONFIG_HOTPLUG_CPU
289281
bool cpu_wait_death(unsigned int cpu, int seconds);
290282
bool cpu_report_death(void);
283+
void cpuhp_report_idle_dead(void);
284+
#else
285+
static inline void cpuhp_report_idle_dead(void) { }
291286
#endif /* #ifdef CONFIG_HOTPLUG_CPU */
292287

293288
#endif /* _LINUX_CPU_H_ */

include/linux/cpuhotplug.h

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
#ifndef __CPUHOTPLUG_H
2+
#define __CPUHOTPLUG_H
3+
4+
enum cpuhp_state {
5+
CPUHP_OFFLINE,
6+
CPUHP_CREATE_THREADS,
7+
CPUHP_NOTIFY_PREPARE,
8+
CPUHP_BRINGUP_CPU,
9+
CPUHP_AP_IDLE_DEAD,
10+
CPUHP_AP_OFFLINE,
11+
CPUHP_AP_NOTIFY_STARTING,
12+
CPUHP_AP_ONLINE,
13+
CPUHP_TEARDOWN_CPU,
14+
CPUHP_AP_ONLINE_IDLE,
15+
CPUHP_AP_SMPBOOT_THREADS,
16+
CPUHP_AP_NOTIFY_ONLINE,
17+
CPUHP_AP_ONLINE_DYN,
18+
CPUHP_AP_ONLINE_DYN_END = CPUHP_AP_ONLINE_DYN + 30,
19+
CPUHP_ONLINE,
20+
};
21+
22+
int __cpuhp_setup_state(enum cpuhp_state state, const char *name, bool invoke,
23+
int (*startup)(unsigned int cpu),
24+
int (*teardown)(unsigned int cpu));
25+
26+
/**
27+
* cpuhp_setup_state - Setup hotplug state callbacks with calling the callbacks
28+
* @state: The state for which the calls are installed
29+
* @name: Name of the callback (will be used in debug output)
30+
* @startup: startup callback function
31+
* @teardown: teardown callback function
32+
*
33+
* Installs the callback functions and invokes the startup callback on
34+
* the present cpus which have already reached the @state.
35+
*/
36+
static inline int cpuhp_setup_state(enum cpuhp_state state,
37+
const char *name,
38+
int (*startup)(unsigned int cpu),
39+
int (*teardown)(unsigned int cpu))
40+
{
41+
return __cpuhp_setup_state(state, name, true, startup, teardown);
42+
}
43+
44+
/**
45+
* cpuhp_setup_state_nocalls - Setup hotplug state callbacks without calling the
46+
* callbacks
47+
* @state: The state for which the calls are installed
48+
* @name: Name of the callback.
49+
* @startup: startup callback function
50+
* @teardown: teardown callback function
51+
*
52+
* Same as @cpuhp_setup_state except that no calls are executed are invoked
53+
* during installation of this callback. NOP if SMP=n or HOTPLUG_CPU=n.
54+
*/
55+
static inline int cpuhp_setup_state_nocalls(enum cpuhp_state state,
56+
const char *name,
57+
int (*startup)(unsigned int cpu),
58+
int (*teardown)(unsigned int cpu))
59+
{
60+
return __cpuhp_setup_state(state, name, false, startup, teardown);
61+
}
62+
63+
void __cpuhp_remove_state(enum cpuhp_state state, bool invoke);
64+
65+
/**
66+
* cpuhp_remove_state - Remove hotplug state callbacks and invoke the teardown
67+
* @state: The state for which the calls are removed
68+
*
69+
* Removes the callback functions and invokes the teardown callback on
70+
* the present cpus which have already reached the @state.
71+
*/
72+
static inline void cpuhp_remove_state(enum cpuhp_state state)
73+
{
74+
__cpuhp_remove_state(state, true);
75+
}
76+
77+
/**
78+
* cpuhp_remove_state_nocalls - Remove hotplug state callbacks without invoking
79+
* teardown
80+
* @state: The state for which the calls are removed
81+
*/
82+
static inline void cpuhp_remove_state_nocalls(enum cpuhp_state state)
83+
{
84+
__cpuhp_remove_state(state, false);
85+
}
86+
87+
#ifdef CONFIG_SMP
88+
void cpuhp_online_idle(enum cpuhp_state state);
89+
#else
90+
static inline void cpuhp_online_idle(enum cpuhp_state state) { }
91+
#endif
92+
93+
#endif

include/linux/notifier.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
* runtime initialization.
4848
*/
4949

50+
struct notifier_block;
51+
5052
typedef int (*notifier_fn_t)(struct notifier_block *nb,
5153
unsigned long action, void *data);
5254

0 commit comments

Comments
 (0)