/* This file is part of cputemp2maxfreq. Copyright (C) 2023-2024 pa4wdh cputemp2maxfreq is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License , or (at your option) any later version. cputemp2maxfreq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with cputemp2maxfreq; see the file COPYING. If not, see . */ #include #include #include #include #include "cputemp2maxfreq.h" #include "debug.h" #include "logger.h" #include "version.h" extern struct s_config config; void printhelp() { printf( "Usage: %s \n" "\n" "Scaling options:\n" "-d Transition latency in us or \"auto\" for autodetect\n" " Default: auto\n" "-f Fallback frequency in KHz, used when everything fails\n" " Default: %ld\n" "-g cpufreq governor to use, use \"keep\" to keep current governor\n" " Default: %s\n" "-i Input for temperature readout, this can be specified as:\n" " A full path that starts with /, usually somewhere in sysfs\n" " A sensor name, for example \"Core 0\"\n" " The word \"auto\" autodetects a valid sensor\n" " Default: %s\n" "-k Keep last state on successful exit, set CPU to lowest frequency\n" " on error.\n" " Default: Always set CPU to lowest frequency on exit\n" "-p