Add unit tests for possible_cpus_array_len
[userspace-rcu.git] / tests / unit / get_max_cpuid_from_sysfs.c
CommitLineData
4de89c11
MJ
1/*
2 * SPDX-License-Identifier: GPL-2.0-or-later
3 *
4 * Copyright (C) 2022 Michael Jeanson <mjeanson@efficios.com>
5 */
6
7#include <stdio.h>
8#include <stdlib.h>
9
10#include "compat-smp.h"
11
12int main(int argc, char *argv[])
13{
14 int ret;
15
16 if( argc < 2 ) {
17 fprintf(stderr, "Missing argument.\n");
18 return EXIT_FAILURE;
19 }
20
21 ret = _get_max_cpuid_from_sysfs(argv[1]);
22
23 printf("%d\n", ret);
24
25 if (ret >= 0)
26 return EXIT_SUCCESS;
27 else
28 return EXIT_FAILURE;
29}
This page took 0.022795 seconds and 4 git commands to generate.