Long pending little changes that were dying for checkin in my local repository...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12114 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2005-03-29 09:49:58 +00:00
parent 1a7fc52717
commit ccaabbeff6
3 changed files with 4 additions and 13 deletions

View File

@ -8,10 +8,7 @@
#include <OS.h>
#include <malloc.h>
#ifdef _KERNEL_MODE
#include <KernelExport.h>
#endif
#include "net_timer.h"
@ -57,11 +54,9 @@ net_init_timer(void)
#ifdef _KERNEL_MODE
set_sem_owner(gTimerInfo.ti_lock, B_SYSTEM_TEAM);
set_sem_owner(gTimerInfo.ti_wait, B_SYSTEM_TEAM);
thread = spawn_kernel_thread(net_timer,"net timer",B_NORMAL_PRIORITY,&gTimerInfo);
#else
thread = spawn_thread(net_timer,"net timer",B_NORMAL_PRIORITY,&gTimerInfo);
#endif
#endif
thread = spawn_kernel_thread(net_timer, "net timer", B_NORMAL_PRIORITY, &gTimerInfo);
if (thread < B_OK)
return thread;

View File

@ -44,9 +44,6 @@ static benaphore sockets_lock;
/* OpenBSD sets this at 128??? */
static int somaxconn = SOMAXCONN;
/* for now - should be moved to be_error.h */
#define EDESTADDRREQ EINVAL
int sockets_init(void)
{
if (!spool)

View File

@ -30,7 +30,6 @@
#include "ethernet_module.h"
#include <KernelExport.h>
#define spawn_thread spawn_kernel_thread
#define printf dprintf
/* forward prototypes */
@ -970,7 +969,7 @@ static int ether_init(void *cpp)
core = (struct core_module_info*) cpp;
etherq = start_ifq();
ether_rxt = spawn_thread(ether_input, "ethernet_input", 50, NULL);
ether_rxt = spawn_kernel_thread(ether_input, "ethernet_input", B_REAL_TIME_DISPLAY_PRIORITY, NULL);
if (ether_rxt > 0)
resume_thread(ether_rxt);