Based off b80915eb99
and compacted into a single commit so that it will fit on the uni git server
13 lines
166 B
C
13 lines
166 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef _GNU_SOURCE
|
|
#define _GNU_SOURCE
|
|
#endif
|
|
#include <sched.h>
|
|
|
|
int main(void)
|
|
{
|
|
return sched_getcpu();
|
|
}
|
|
|
|
#undef _GNU_SOURCE
|