Re: [PATCH] PM / EM: postpone creating the debugfs dir till fs_initcall

2021-03-24 Thread Lukasz Luba
On 3/23/21 6:55 PM, Rafael J. Wysocki wrote: On Tue, Mar 23, 2021 at 4:57 PM Lukasz Luba wrote: On 3/23/21 3:26 PM, Greg KH wrote: On Tue, Mar 23, 2021 at 02:56:08PM +, Lukasz Luba wrote: The debugfs directory '/sys/kernel/debug/energy_model' is needed before the Energy Model regist

Re: [PATCH] PM / EM: postpone creating the debugfs dir till fs_initcall

2021-03-23 Thread Rafael J. Wysocki
On Tue, Mar 23, 2021 at 4:57 PM Lukasz Luba wrote: > > > > On 3/23/21 3:26 PM, Greg KH wrote: > > On Tue, Mar 23, 2021 at 02:56:08PM +, Lukasz Luba wrote: > >> The debugfs directory '/sys/kernel/debug/energy_model' is needed before > >> the Energy Model registration can happen. With the recent

Re: [PATCH] PM / EM: postpone creating the debugfs dir till fs_initcall

2021-03-23 Thread Lukasz Luba
On 3/23/21 3:26 PM, Greg KH wrote: On Tue, Mar 23, 2021 at 02:56:08PM +, Lukasz Luba wrote: The debugfs directory '/sys/kernel/debug/energy_model' is needed before the Energy Model registration can happen. With the recent change in debugfs subsystem it's not allowed to create this directo

Re: [PATCH] PM / EM: postpone creating the debugfs dir till fs_initcall

2021-03-23 Thread Greg KH
On Tue, Mar 23, 2021 at 02:56:08PM +, Lukasz Luba wrote: > The debugfs directory '/sys/kernel/debug/energy_model' is needed before > the Energy Model registration can happen. With the recent change in > debugfs subsystem it's not allowed to create this directory at early stage > (core_initcall)

[PATCH] PM / EM: postpone creating the debugfs dir till fs_initcall

2021-03-23 Thread Lukasz Luba
The debugfs directory '/sys/kernel/debug/energy_model' is needed before the Energy Model registration can happen. With the recent change in debugfs subsystem it's not allowed to create this directory at early stage (core_initcall). Thus creating this directory would fail. Postpone the creation of t