Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
# by reading /sys/kernel/debug/dri/0/i915_emon_status too quickly
#
-. ./drm_lib.sh
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
cd $i915_path
#!/bin/sh
-. ./drm_lib.sh
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
exit 0
# by reading /sys/kernel/debug/dri/0/i915_emon_status too quickly
#
-. ./drm_lib.sh
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
for z in $(seq 1 1000); do
cat $i915_path/i915_emon_status > /dev/null
#!/bin/sh
-. ./drm_lib.sh
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
# read everything we can
cat $i915_path/* > /dev/null 2>&1