mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 08:38:45 +02:00 
			
		
		
		
	 3d7e10188a
			
		
	
	
		3d7e10188a
		
	
	
	
	
		
			
			Due to the weird Makefile setup of sched the various files do not compile as stand alone units. The new generation of editors are trying to do just this -- mostly to offer fancy things like completions but also better syntax highlighting and code navigation. Specifically, I've been playing around with neovim and clangd. Setting up clangd on the kernel source is a giant pain in the arse (this really should be improved), but once you do manage, you run into dumb stuff like the above. Fix up the scheduler files to at least pretend to work. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Ingo Molnar <mingo@kernel.org> Tested-by: Juri Lelli <juri.lelli@redhat.com> Link: https://lkml.kernel.org/r/20250523164348.GN39944@noisy.programming.kicks-ass.net
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			523 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			523 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| 
 | |
| #ifndef _KERNEL_SCHED_SMP_H
 | |
| #define _KERNEL_SCHED_SMP_H
 | |
| 
 | |
| /*
 | |
|  * Scheduler internal SMP callback types and methods between the scheduler
 | |
|  * and other internal parts of the core kernel:
 | |
|  */
 | |
| #include <linux/types.h>
 | |
| 
 | |
| extern void sched_ttwu_pending(void *arg);
 | |
| 
 | |
| extern bool call_function_single_prep_ipi(int cpu);
 | |
| 
 | |
| #ifdef CONFIG_SMP
 | |
| extern void flush_smp_call_function_queue(void);
 | |
| #else
 | |
| static inline void flush_smp_call_function_queue(void) { }
 | |
| #endif
 | |
| 
 | |
| #endif /* _KERNEL_SCHED_SMP_H */
 |