Skip to content

Commit

Permalink
Merge pull request torvalds#193 from liuyuan10/mem
Browse files Browse the repository at this point in the history
lkl: Revert "lkl: decrease stack size of thread_create to PTHREAD_STA…
  • Loading branch information
liuyuan10 authored Aug 5, 2016
2 parents 591c3b6 + d7567bc commit 78d9357
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tools/lkl/lib/posix-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <sys/socket.h>
#include <sys/syscall.h>
#include <poll.h>
#include <limits.h>
#include <lkl_host.h>
#include "iomem.h"

Expand Down Expand Up @@ -178,10 +177,7 @@ static void mutex_free(struct lkl_mutex *_mutex)
static lkl_thread_t thread_create(void (*fn)(void *), void *arg)
{
pthread_t thread;
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN);
if (WARN_PTHREAD(pthread_create(&thread, &attr, (void* (*)(void *))fn, arg)))
if (WARN_PTHREAD(pthread_create(&thread, NULL, (void* (*)(void *))fn, arg)))
return 0;
else
return (lkl_thread_t) thread;
Expand Down

0 comments on commit 78d9357

Please sign in to comment.