Skip to content

Commit d69129e

Browse files
committed
Automatic merge of 'fixes-test' into merge-test (2024-03-15 19:34)
2 parents f94e52b + ad05ce7 commit d69129e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

arch/powerpc/include/asm/plpks.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@
4444
#define PLPKS_MAX_DATA_SIZE 4000
4545

4646
// Timeouts for PLPKS operations
47-
#define PLPKS_MAX_TIMEOUT 5000 // msec
48-
#define PLPKS_FLUSH_SLEEP 10 // msec
49-
#define PLPKS_FLUSH_SLEEP_RANGE 400
47+
#define PLPKS_MAX_TIMEOUT (5 * USEC_PER_SEC)
48+
#define PLPKS_FLUSH_SLEEP 10000 // usec
5049

5150
struct plpks_var {
5251
char *component;

arch/powerpc/platforms/pseries/plpks.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,7 @@ static int plpks_confirm_object_flushed(struct label *label,
415415
break;
416416
}
417417

418-
usleep_range(PLPKS_FLUSH_SLEEP,
419-
PLPKS_FLUSH_SLEEP + PLPKS_FLUSH_SLEEP_RANGE);
418+
fsleep(PLPKS_FLUSH_SLEEP);
420419
timeout = timeout + PLPKS_FLUSH_SLEEP;
421420
} while (timeout < PLPKS_MAX_TIMEOUT);
422421

0 commit comments

Comments
 (0)