Minor changes to tests; fix typo; tidy up.
This commit is contained in:
parent
7dc9cf78f6
commit
e17607b0d3
@ -277,8 +277,6 @@ return_clonebuf:
|
||||
GWBUF *
|
||||
gwbuf_append(GWBUF *head, GWBUF *tail)
|
||||
{
|
||||
GWBUF *ptr = head;
|
||||
|
||||
if (!head)
|
||||
return tail;
|
||||
CHK_GWBUF(head);
|
||||
|
@ -131,7 +131,7 @@ CONFIG_PARAMETER *param, *p1;
|
||||
ptr->element = NULL;
|
||||
cntxt->next = ptr;
|
||||
}
|
||||
/* Check to see if the paramter already exists for the section */
|
||||
/* Check to see if the parameter already exists for the section */
|
||||
p1 = ptr->parameters;
|
||||
while (p1)
|
||||
{
|
||||
|
@ -128,7 +128,7 @@ spinlock_release(SPINLOCK *lock)
|
||||
lock->max_waiting = lock->waiting;
|
||||
#endif
|
||||
#ifdef __GNUC__
|
||||
__sync_synchronize(); // Memory barrier.
|
||||
__sync_synchronize(); /* Memory barrier. */
|
||||
lock->lock = 0;
|
||||
#else
|
||||
atomic_add(&(lock->lock), -1);
|
||||
|
@ -135,7 +135,7 @@ struct timespec sleeptime;
|
||||
* Start multiple threads that obtain spinlock and run process bound
|
||||
*/
|
||||
#define THREADS 5
|
||||
#define ITERATIONS 25000
|
||||
#define ITERATIONS 50000
|
||||
#define PROCESS_LOOP 10000
|
||||
#define SECONDS 15
|
||||
#define NANOTIME 100000
|
||||
@ -184,7 +184,7 @@ time_t rawtime;
|
||||
}
|
||||
active = 0;
|
||||
spinlock_release(&lck);
|
||||
for (i=0; i<(8*PROCESS_LOOP); i++);
|
||||
for (i=0; i<(4*PROCESS_LOOP); i++);
|
||||
// nanosleep(&sleeptime, NULL);
|
||||
}
|
||||
spinlock_release(&lck);
|
||||
|
Loading…
x
Reference in New Issue
Block a user