mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
remove obsolete code
This commit is contained in:
parent
b4c45c5d7d
commit
6033da1ecf
1 changed files with 1 additions and 38 deletions
|
@ -311,43 +311,6 @@ static int init_rcce(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
// some stress tests
|
||||
static void lock_test(void)
|
||||
{
|
||||
uint64_t start, end;
|
||||
int i;
|
||||
static spinlock_t _lock = SPINLOCK_INIT;
|
||||
static sem_t _sem = SEM_INIT(1);
|
||||
|
||||
start = rdtsc();
|
||||
|
||||
for(i=0; i<10000; i++)
|
||||
{
|
||||
spinlock_lock(&_lock);
|
||||
NOP;
|
||||
spinlock_unlock(&_lock);
|
||||
}
|
||||
|
||||
end = rdtsc();
|
||||
|
||||
LOG_INFO("locks %lld (iterations %d)\n", end-start, i);
|
||||
|
||||
start = rdtsc();
|
||||
|
||||
for(i=0; i<10000; i++)
|
||||
{
|
||||
sem_wait(&_sem, 0);
|
||||
NOP;
|
||||
sem_post(&_sem);
|
||||
}
|
||||
|
||||
end = rdtsc();
|
||||
|
||||
LOG_INFO("sem %lld (iterations %d)\n", end-start, i);
|
||||
}
|
||||
#endif
|
||||
|
||||
int libc_start(int argc, char** argv, char** env);
|
||||
|
||||
// init task => creates all other tasks an initialize the LwIP
|
||||
|
@ -590,7 +553,7 @@ int hermit_main(void)
|
|||
print_status();
|
||||
//vma_dump();
|
||||
|
||||
//create_kernel_task_on_core(NULL, initd, NULL, NORMAL_PRIO, boot_processor);
|
||||
create_kernel_task_on_core(NULL, initd, NULL, NORMAL_PRIO, boot_processor);
|
||||
|
||||
while(1) {
|
||||
check_workqueues();
|
||||
|
|
Loading…
Add table
Reference in a new issue