Skip to content

Commit

Permalink
Automatic merge of 'fixes-test' into merge-test (2024-03-15 19:34)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpe committed Mar 15, 2024
2 parents f94e52b + ad05ce7 commit d69129e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions arch/powerpc/include/asm/plpks.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@
#define PLPKS_MAX_DATA_SIZE 4000

// Timeouts for PLPKS operations
#define PLPKS_MAX_TIMEOUT 5000 // msec
#define PLPKS_FLUSH_SLEEP 10 // msec
#define PLPKS_FLUSH_SLEEP_RANGE 400
#define PLPKS_MAX_TIMEOUT (5 * USEC_PER_SEC)
#define PLPKS_FLUSH_SLEEP 10000 // usec

struct plpks_var {
char *component;
Expand Down
3 changes: 1 addition & 2 deletions arch/powerpc/platforms/pseries/plpks.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,7 @@ static int plpks_confirm_object_flushed(struct label *label,
break;
}

usleep_range(PLPKS_FLUSH_SLEEP,
PLPKS_FLUSH_SLEEP + PLPKS_FLUSH_SLEEP_RANGE);
fsleep(PLPKS_FLUSH_SLEEP);
timeout = timeout + PLPKS_FLUSH_SLEEP;
} while (timeout < PLPKS_MAX_TIMEOUT);

Expand Down

0 comments on commit d69129e

Please sign in to comment.