ww_mutex.sh 283 B

1234567891011
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. # Runs API tests for struct ww_mutex (Wait/Wound mutexes)
  4. if /sbin/modprobe -q test-ww_mutex; then
  5. /sbin/modprobe -q -r test-ww_mutex
  6. echo "locking/ww_mutex: ok"
  7. else
  8. echo "locking/ww_mutex: [FAIL]"
  9. exit 1
  10. fi