Fix some bad conditional compilation and other typos in last commit
This commit is contained in:
parent
6aeb4a52e8
commit
d6912d0b00
@ -118,11 +118,11 @@ static inline void sched_kucleanup(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \
|
#ifndef CONFIG_BUILD_KERNEL
|
||||||
defined(CONFIG_MM_KERNEL_HEAP)
|
|
||||||
static inline bool sched_have_kugarbage(void)
|
static inline bool sched_have_kugarbage(void)
|
||||||
{
|
{
|
||||||
return (g_delayed_kufree.head != NULL);
|
return (g_delayed_kufree.head != NULL);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
# define sched_have_kugarbage() false
|
# define sched_have_kugarbage() false
|
||||||
#endif
|
#endif
|
||||||
@ -197,6 +197,7 @@ static inline void sched_kcleanup(void)
|
|||||||
static inline bool sched_have_kgarbage(void)
|
static inline bool sched_have_kgarbage(void)
|
||||||
{
|
{
|
||||||
return (g_delayed_kfree.head != NULL);
|
return (g_delayed_kfree.head != NULL);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
# define sched_have_kgarbage() false
|
# define sched_have_kgarbage() false
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user