ext4l: Extract freezer.h declarations into their own file
Create include/linux/freezer.h with stub definitions for process freezer functions used during suspend/hibernate. U-Boot doesn't support process freezing, so these are no-ops. Update compat.h to include freezer.h and remove duplicate definitions. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/freezer.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/uaccess.h>
|
||||
|
||||
@@ -228,8 +229,6 @@ typedef unsigned long blkcnt_t;
|
||||
#define dump_stack(...) do { } while (0)
|
||||
|
||||
#define task_pid_nr(x) 0
|
||||
#define set_freezable(...) do { } while (0)
|
||||
#define try_to_freeze(...) 0
|
||||
#define set_current_state(...) do { } while (0)
|
||||
#define kthread_should_stop(...) 0
|
||||
|
||||
|
||||
17
include/linux/freezer.h
Normal file
17
include/linux/freezer.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/* Freezer declarations
|
||||
*
|
||||
* Stub definitions for Linux kernel freezer (suspend/hibernate).
|
||||
* U-Boot doesn't support process freezing.
|
||||
*/
|
||||
#ifndef _LINUX_FREEZER_H
|
||||
#define _LINUX_FREEZER_H
|
||||
|
||||
#define set_freezable() do { } while (0)
|
||||
#define try_to_freeze() 0
|
||||
#define freezing(task) 0
|
||||
#define frozen(task) 0
|
||||
#define freezable_schedule() do { } while (0)
|
||||
#define freezable_schedule_timeout(t) 0
|
||||
|
||||
#endif /* _LINUX_FREEZER_H */
|
||||
Reference in New Issue
Block a user