Skip to content

Commit

Permalink
Merge pull request torvalds#123 from ngkaho1234/fix-sem-fault
Browse files Browse the repository at this point in the history
lkl: fix wakeup_cpu trashing the heap of host memory allocator.
  • Loading branch information
Octavian Purdila committed Mar 13, 2016
2 parents 8da1ab8 + fe7f150 commit 41efdf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/lkl/kernel/setup.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <linux/init.h>
#include <linux/init_task.h>
#include <linux/reboot.h>
#include <linux/tick.h>
#include <linux/fs.h>
#include <linux/start_kernel.h>
#include <linux/syscalls.h>
Expand Down Expand Up @@ -145,6 +146,10 @@ void arch_cpu_idle(void)
* segfault because the tx/rx threads are still
* running in parallel. */
/* free_mem(); */

/* Shutdown the clockevents source. */
tick_suspend_local();

lkl_ops->sem_up(halt_sem);
lkl_ops->thread_exit();
}
Expand Down

0 comments on commit 41efdf8

Please sign in to comment.