#!/bin/sh

# A simple test for amd76x_pm timer skew problem

echo "Running test for kernel version "`uname -r`
echo "This test will take about 140 seconds to run"
echo
echo "ACPI interrupts before the first test: "
cat /proc/interrupts | grep acpi
echo
echo "Running test without amd76x_pm module"
/sbin/rmmod amd76x_pm
/sbin/adjtimex --tick 10000 --frequency 0
/sbin/adjtimex --adjust

echo
echo "ACPI interrupts after the first test: "
cat /proc/interrupts | grep acpi
echo
echo "Running test with amd76x_pm module"
/sbin/modprobe amd76x_pm
/sbin/adjtimex --tick 10000 --frequency 0
/sbin/adjtimex --adjust
echo
echo "ACPI interrupts after the second test: "
cat /proc/interrupts | grep acpi

