init: Add CPU_RESUME and CPU_SUSPEND flag/type
The CPU_SUSPEND flag/type will be used to save state/disable portions of lk when entering a suspend state. The CPU_RESUME flag/type will be used to re-initialize portions of lk when resuming from a suspended state. Change-Id: Ia21f845da72552c68c679b24413cdc1138e3968c
This commit is contained in:
committed by
Arve Hjønnevåg
parent
615fa16210
commit
d6da35afc5
@@ -31,6 +31,8 @@ enum lk_init_flags {
|
||||
LK_INIT_FLAG_PRIMARY_CPU = 0x1,
|
||||
LK_INIT_FLAG_SECONDARY_CPUS = 0x2,
|
||||
LK_INIT_FLAG_ALL_CPUS = LK_INIT_FLAG_PRIMARY_CPU | LK_INIT_FLAG_SECONDARY_CPUS,
|
||||
LK_INIT_FLAG_CPU_SUSPEND = 0x4,
|
||||
LK_INIT_FLAG_CPU_RESUME = 0x8,
|
||||
};
|
||||
|
||||
void lk_init_level(enum lk_init_flags flags, uint start_level, uint stop_level);
|
||||
|
||||
Reference in New Issue
Block a user