mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-06-21 09:12:26 +02:00
Linux_SDK_V1.4.2
Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
This commit is contained in:
committed by
Han Gao/Revy/Rabenda
parent
e17ac7bab2
commit
d4c68ef2c1
@@ -19,7 +19,8 @@
|
||||
#define LIGHT_VPSYS_VENC_PCLK 10
|
||||
#define LIGHT_VPSYS_VENC_ACLK 11
|
||||
#define LIGHT_VPSYS_G2D_CCLK_DIV 12
|
||||
#define LIGHT_VPSYS_CLK_END 13
|
||||
#define LIGHT_VPSYS_DEC_CCLK_DIV 13
|
||||
#define LIGHT_VPSYS_CLK_END 14
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -38,8 +38,9 @@ enum light_aon_misc_func {
|
||||
LIGHT_AON_MISC_FUNC_AON_WDT_OFF = 11,
|
||||
LIGHT_AON_MISC_FUNC_AON_RESERVE_MEM = 12,
|
||||
LIGHT_AON_MISC_FUNC_REQUIRE_STR = 13,
|
||||
LIGHT_AON_MISC_FUNC_REQUIRE_STD = 14,
|
||||
LIGHT_AON_MISC_FUNC_CPUHP = 15,
|
||||
LIGHT_AON_MISC_FUNC_RESUME_STR = 14,
|
||||
LIGHT_AON_MISC_FUNC_REQUIRE_STD = 15,
|
||||
LIGHT_AON_MISC_FUNC_CPUHP = 16,
|
||||
};
|
||||
|
||||
enum light_aon_pm_func {
|
||||
|
||||
@@ -3120,16 +3120,6 @@ static inline bool debug_pagealloc_enabled_static(void)
|
||||
#if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_ARCH_HAS_SET_DIRECT_MAP)
|
||||
extern void __kernel_map_pages(struct page *page, int numpages, int enable);
|
||||
|
||||
/*
|
||||
* When called in DEBUG_PAGEALLOC context, the call should most likely be
|
||||
* guarded by debug_pagealloc_enabled() or debug_pagealloc_enabled_static()
|
||||
*/
|
||||
static inline void
|
||||
kernel_map_pages(struct page *page, int numpages, int enable)
|
||||
{
|
||||
__kernel_map_pages(page, numpages, enable);
|
||||
}
|
||||
|
||||
static inline void debug_pagealloc_map_pages(struct page *page, int numpages)
|
||||
{
|
||||
if (debug_pagealloc_enabled_static())
|
||||
@@ -3146,8 +3136,6 @@ static inline void debug_pagealloc_unmap_pages(struct page *page, int numpages)
|
||||
extern bool kernel_page_present(struct page *page);
|
||||
#endif /* CONFIG_HIBERNATION */
|
||||
#else /* CONFIG_DEBUG_PAGEALLOC || CONFIG_ARCH_HAS_SET_DIRECT_MAP */
|
||||
static inline void
|
||||
kernel_map_pages(struct page *page, int numpages, int enable) {}
|
||||
static inline void debug_pagealloc_map_pages(struct page *page, int numpages) {}
|
||||
static inline void debug_pagealloc_unmap_pages(struct page *page, int numpages) {}
|
||||
#ifdef CONFIG_HIBERNATION
|
||||
|
||||
@@ -445,6 +445,10 @@ extern unsigned long get_safe_page(gfp_t gfp_mask);
|
||||
extern asmlinkage int swsusp_arch_suspend(void);
|
||||
extern asmlinkage int swsusp_arch_resume(void);
|
||||
|
||||
extern int hibernate_register_nosave_region(unsigned long start_pfn, unsigned long end_pfn);
|
||||
extern int hibernate_remove_nosave_region(unsigned long start_pfn, unsigned long end_pfn);
|
||||
|
||||
extern void hibernation_set_allmode_ops(const struct platform_hibernation_ops *ops);
|
||||
extern void hibernation_set_ops(const struct platform_hibernation_ops *ops);
|
||||
extern int hibernate(void);
|
||||
extern bool system_entering_hibernation(void);
|
||||
@@ -460,6 +464,13 @@ static inline int swsusp_page_is_forbidden(struct page *p) { return 0; }
|
||||
static inline void swsusp_set_page_free(struct page *p) {}
|
||||
static inline void swsusp_unset_page_free(struct page *p) {}
|
||||
|
||||
static inline int hibernate_register_nosave_region(unsigned long start_pfn, unsigned long end_pfn){
|
||||
return 0;
|
||||
}
|
||||
static inline int hibernate_remove_nosave_region(unsigned long start_pfn, unsigned long end_pfn){
|
||||
return 0;
|
||||
}
|
||||
static inline void hibernation_set_allmode_ops(const struct platform_hibernation_ops *ops) {}
|
||||
static inline void hibernation_set_ops(const struct platform_hibernation_ops *ops) {}
|
||||
static inline int hibernate(void) { return -ENOSYS; }
|
||||
static inline bool system_entering_hibernation(void) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user