commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
19 lines
307 B
C
19 lines
307 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <stdint.h>
|
|
#include <pthread.h>
|
|
#include <sched.h>
|
|
|
|
int main(void)
|
|
{
|
|
int ret = 0;
|
|
pthread_attr_t thread_attr;
|
|
cpu_set_t cs;
|
|
|
|
pthread_attr_init(&thread_attr);
|
|
CPU_ZERO(&cs);
|
|
|
|
ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cs), &cs);
|
|
|
|
return ret;
|
|
}
|