mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-20 00:06:14 +07:00
selftest: intel_pstate: debug support message from aperf.c and return value
Additional message along with an error message which is more verbose for debug support from aperf.c and updated with the new return value "KSFT_SKIP". Signed-off-by: Jeffrin Jose T [Rajagiri SET] <ahiliation@gmail.com> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
This commit is contained in:
parent
adb31be442
commit
d0103c5cb6
@ -9,6 +9,8 @@
|
||||
#include <sys/timeb.h>
|
||||
#include <sched.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include "../kselftest.h"
|
||||
|
||||
void usage(char *name) {
|
||||
printf ("Usage: %s cpunum\n", name);
|
||||
@ -41,8 +43,8 @@ int main(int argc, char **argv) {
|
||||
fd = open(msr_file_name, O_RDONLY);
|
||||
|
||||
if (fd == -1) {
|
||||
perror("Failed to open");
|
||||
return 1;
|
||||
printf("/dev/cpu/%d/msr: %s\n", cpu, strerror(errno));
|
||||
return KSFT_SKIP;
|
||||
}
|
||||
|
||||
CPU_ZERO(&cpuset);
|
||||
|
Loading…
Reference in New Issue
Block a user