hc
2024-08-14 d5ef2fdafdb09de9c2f876fc0edf2ba6bf224909
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
 
DIR_DVFS=/rockchip-test/cpu
 
info_view()
{
    echo "*****************************************************"
    echo "***                                               ***"
    echo "***            CPU TEST                           ***"
    echo "***                                               ***"
    echo "*****************************************************"
}
 
info_view
echo "*****************************************************"
echo "cpu freq stress test:                               1"
echo "*****************************************************"
 
read -t 30 CPUFREQ_CHOICE
 
cpu_freq_stress_test()
{
   #test 24 hours, every cpu frequency stay 10 seconds
   bash ${DIR_DVFS}/cpu_freq_stress_test.sh 86400 10 &
}
 
case ${CPUFREQ_CHOICE} in
   1)
       cpu_freq_stress_test
       ;;
   *)
       echo "not fount your input."
       ;;
esac