Skip to content

Commit 41efdf8

Browse files
author
Octavian Purdila
committed
Merge pull request torvalds#123 from ngkaho1234/fix-sem-fault
lkl: fix wakeup_cpu trashing the heap of host memory allocator.
2 parents 8da1ab8 + fe7f150 commit 41efdf8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/lkl/kernel/setup.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <linux/init.h>
22
#include <linux/init_task.h>
33
#include <linux/reboot.h>
4+
#include <linux/tick.h>
45
#include <linux/fs.h>
56
#include <linux/start_kernel.h>
67
#include <linux/syscalls.h>
@@ -145,6 +146,10 @@ void arch_cpu_idle(void)
145146
* segfault because the tx/rx threads are still
146147
* running in parallel. */
147148
/* free_mem(); */
149+
150+
/* Shutdown the clockevents source. */
151+
tick_suspend_local();
152+
148153
lkl_ops->sem_up(halt_sem);
149154
lkl_ops->thread_exit();
150155
}

0 commit comments

Comments
 (0)