diff options
| author | xxy <[email protected]> | 2022-04-25 15:01:20 +0800 |
|---|---|---|
| committer | xxy <[email protected]> | 2022-04-25 15:01:20 +0800 |
| commit | af5f4bfb7200fc7cc2c1de5f19173500ecfbe527 (patch) | |
| tree | fda51dfe36aea39efc74738bf77c442f6b1761dd | |
| parent | 6fbf5cc6d0ce910c4639e56ada85dcbdc86c3c88 (diff) | |
for safe
| -rwxr-xr-x | tools/uintr/sample/uipi_sample | bin | 1496160 -> 1496160 bytes | |||
| -rw-r--r-- | tools/uintr/sample/uipi_sample.c | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/uintr/sample/uipi_sample b/tools/uintr/sample/uipi_sample Binary files differindex 40ca862d95bd..371b1ca01a34 100755 --- a/tools/uintr/sample/uipi_sample +++ b/tools/uintr/sample/uipi_sample diff --git a/tools/uintr/sample/uipi_sample.c b/tools/uintr/sample/uipi_sample.c index 18b1f21ae8ba..cc950c5359d0 100644 --- a/tools/uintr/sample/uipi_sample.c +++ b/tools/uintr/sample/uipi_sample.c @@ -47,7 +47,7 @@ void *sender_thread(void *arg) exit(EXIT_FAILURE); } - printf("Sending IPI from sender thread\n"); + printf("Sending IPI from sender thread index:%d \n", uipi_index); _senduipi(uipi_index); uintr_unregister_sender(uintr_fd, 0); @@ -80,8 +80,8 @@ int main(int argc, char *argv[]) } /* Do some other work */ - while (!uintr_received) - usleep(1); + //while (!uintr_received) + usleep(10); pthread_join(pt, NULL); close(uintr_fd); |
