# Creation: 20.05.2020 chfritsch
hwmon_generic_acpi_coretemp_frequency ()
{
# var1=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq`
var1=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
var1=$((var1 / 1000))
show_tab_header ${_HWSUPP_RT_FREQUENCY} no
echo "
"
echo ""
echo "${_HWSUPP_HWMON_SENSOR} | "
echo "${_HWSUPP_RL_FREQUENCY} | "
echo "
"
echo ""
echo "${_HWSUPP_RC_CPU} 0 | "
echo "${var1} | "
echo "
"
echo "
"
show_tab_footer
}
hwmon_generic_acpi_coretemp_coretemp ()
{
var_coretemp=`sensors -u k10temp-pci-00c3 | grep temp1_input | cut -d : -f 2`
var_coretemp=`echo ${var_coretemp}| sed 's/[^0-9]*\([0-9]*\)\.\([0-9]\{1\}\).*/\1.\2/'`
show_tab_header Core-${_HWSUPP_TEMP} no
echo ""
echo ""
echo "${_HWSUPP_HWMON_SENSOR} | "
echo "$Core-${_HWSUPP_RL_TEMP} | "
echo "
"
echo ""
echo "K10 | "
echo "${var_coretemp} | "
echo "
"
echo "
"
show_tab_footer
}
hwmon_generic_acpi_coretemp ()
{
hwmon_generic_acpi_coretemp_frequency
hwmon_generic_acpi_coretemp_coretemp
}
# _oOo_