18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci#include <linux/sched.h> 38c2ecf20Sopenharmony_ci#include <asm/ptrace-abi.h> 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_civoid clear_flushed_tls(struct task_struct *task) 68c2ecf20Sopenharmony_ci{ 78c2ecf20Sopenharmony_ci} 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciint arch_set_tls(struct task_struct *t, unsigned long tls) 108c2ecf20Sopenharmony_ci{ 118c2ecf20Sopenharmony_ci /* 128c2ecf20Sopenharmony_ci * If CLONE_SETTLS is set, we need to save the thread id 138c2ecf20Sopenharmony_ci * so it can be set during context switches. 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci t->thread.arch.fs = tls; 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci return 0; 188c2ecf20Sopenharmony_ci} 19