There was an error while loading. Please reload this page.
1 parent 9c426e5 commit 77bca13Copy full SHA for 77bca13
1 file changed
stress-lockbus.c
@@ -219,8 +219,8 @@ static int stress_lockbus(stress_args_t *args)
219
{
220
uint32_t *local_buffer;
221
double t, rate;
222
- CLOBBERED double duration;
223
- CLOBBERED double count;
+ CLOBBERED double duration = 0.0;
+ CLOBBERED double count = 0.0;
224
CLOBBERED int rc = EXIT_SUCCESS;
225
uint32_t *misaligned_ptr1;
226
uint32_t *misaligned_ptr2;
@@ -385,8 +385,6 @@ static int stress_lockbus(stress_args_t *args)
385
stress_sync_start_wait(args);
386
stress_proc_state_set(args->name, STRESS_STATE_RUN);
387
388
- duration = 0;
389
- count = 0;
390
do {
391
uint32_t *ptr0 = stress_mwc1() ?
392
local_buffer + (stress_mwc32modn(lockbus_buffer_size - CHUNK_SIZE) >> 2) :
0 commit comments