Files
u-boot/include/linux/freezer.h
Simon Glass e43b787bec linux: Fix definition of try_to_freeze()
The new definition causes a build failure on some boards, such as
vexpress_ca9x4

Use a static inline function to resolve this.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-12-20 15:19:13 -07:00

19 lines
557 B
C

/* 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)
static inline int try_to_freeze(void) { return 0; }
#define freezing(task) ({ (void)(task); 0; })
#define frozen(task) ({ (void)(task); 0; })
#define freezable_schedule() do { } while (0)
#define freezable_schedule_timeout(t) ({ (void)(t); 0; })
#endif /* _LINUX_FREEZER_H */