diff options
| author | Mark Murray <markm@FreeBSD.org> | 2002-09-21 21:44:19 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2002-09-21 21:44:19 +0000 |
| commit | a0a95acece1d200759bbe965fc7cc3d772cb3477 (patch) | |
| tree | 92b06b6d0ecbe33b26908b4b8bc27647a3a5814e | |
| parent | 44e6ce01b9e89a0b00dfd3b063eed7c24cfbb39d (diff) | |
Notes
| -rw-r--r-- | sys/dev/random/randomdev.c | 2 | ||||
| -rw-r--r-- | sys/dev/random/yarrow.c | 8 |
2 files changed, 0 insertions, 10 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 9db07a1de523..e0184289901f 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -358,9 +358,7 @@ random_kthread(void *arg __unused) /* Is the thread scheduled for a shutdown? */ if (random_kthread_control != 0) { #ifdef DEBUG - mtx_lock(&Giant); printf("Random kthread setting terminate\n"); - mtx_unlock(&Giant); #endif random_set_wakeup_exit(&random_kthread_control); /* NOTREACHED */ diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c index 94078927e95e..304de5df0337 100644 --- a/sys/dev/random/yarrow.c +++ b/sys/dev/random/yarrow.c @@ -163,9 +163,7 @@ reseed(u_int fastslow) enum esource j; #ifdef DEBUG - mtx_lock(&Giant); printf("Reseed type %d\n", fastslow); - mtx_unlock(&Giant); #endif /* The reseed task must not be jumped on */ @@ -241,9 +239,7 @@ reseed(u_int fastslow) mtx_unlock(&random_reseed_mtx); #ifdef DEBUG - mtx_lock(&Giant); printf("Reseed finish\n"); - mtx_unlock(&Giant); #endif /* Unblock the device if it was blocked due to being unseeded */ @@ -317,9 +313,7 @@ generator_gate(void) u_char temp[KEYSIZE]; #ifdef DEBUG - mtx_lock(&Giant); printf("Generator gate\n"); - mtx_unlock(&Giant); #endif for (i = 0; i < KEYSIZE; i += sizeof(random_state.counter)) { @@ -332,9 +326,7 @@ generator_gate(void) memset((void *)temp, 0, KEYSIZE); #ifdef DEBUG - mtx_lock(&Giant); printf("Generator gate finish\n"); - mtx_unlock(&Giant); #endif } |
