xref: /aosp_15_r20/external/ltp/testcases/kernel/power_management/pm_get_sched_values.c (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1 /************************************************************************
2 * Copyright (c) International Business Machines Corp., 2008
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 * the GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 *
16 ***************************************************************************/
17 #include <stdio.h>
18 #include "test.h"
19 
20 const char *TCID = "pm_get_sched_values";
21 
main(int argc,char ** argv)22 int main(int argc, char **argv)
23 {
24 	char *param;
25 	if (argc == 0)
26 		return 1;
27 	else {
28 		param = argv[1];
29 		if (strcmp(param, "sched_mc") == 0)
30 			return 2;
31 		if (strcmp(param, "sched_smt") == 0)
32 			return 2;
33 	}
34 
35 	return 1;
36 }
37