Lines Matching +full:thermal +full:- +full:zone

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * tmon.c Thermal Monitor (TMON) main function and entry point
39 static int logging; /* for recording thermal data to a file */
44 int target_thermal_zone; /* user selected target zone instance */
52 printf(" -c, --control cooling device in control\n"); in usage()
53 printf(" -d, --daemon run as daemon, no TUI\n"); in usage()
54 printf(" -g, --debug debug message in syslog\n"); in usage()
55 printf(" -h, --help show this help message\n"); in usage()
56 printf(" -l, --log log data to /var/tmp/tmon.log\n"); in usage()
57 printf(" -t, --time-interval sampling time interval, > 1 sec.\n"); in usage()
58 printf(" -T, --target-temp initial target temperature\n"); in usage()
59 printf(" -v, --version show version\n"); in usage()
60 printf(" -z, --zone target thermal zone id\n"); in usage()
112 printf("ctrl-c, exit and clean up\n"); in tmon_sig_handler()
167 fprintf(tmon_log, "#----------- THERMAL SYSTEM CONFIG -------------\n"); in prepare_logging()
177 fprintf(tmon_log, "#thermal zone %s%02d cdevs binding: %32s\n", in prepare_logging()
192 fprintf(tmon_log, "#---------- THERMAL DATA LOG STARTED -----------\n"); in prepare_logging()
208 { "time-interval", 1, NULL, 't' },
209 { "target-temp", 1, NULL, 'T' },
229 while ((c = getopt_long(argc, argv, "c:dlht:T:vgz:", opts, &id2)) != -1) { in main()
285 return -1; in main()
306 /* validate range of user selected target zone, default to the first in main()
312 syslog(LOG_ERR, "target zone is not found, default to %d\n", in main()