smp.h (be27b3116288a0ff98ddce9c853b6f4fe55e85ee) | smp.h (d6c83356233dc0719907b02a41b180ca46e349ae) |
---|---|
1/*- 2 * Copyright (c) 2017 Mark Johnston <markj@FreeBSD.org> 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 23 unchanged lines hidden (view full) --- 32#if defined(__i386__) || defined(__amd64__) 33 34#define wbinvd_on_all_cpus() linux_wbinvd_on_all_cpus() 35 36int linux_wbinvd_on_all_cpus(void); 37 38#endif 39 | 1/*- 2 * Copyright (c) 2017 Mark Johnston <markj@FreeBSD.org> 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 23 unchanged lines hidden (view full) --- 32#if defined(__i386__) || defined(__amd64__) 33 34#define wbinvd_on_all_cpus() linux_wbinvd_on_all_cpus() 35 36int linux_wbinvd_on_all_cpus(void); 37 38#endif 39 |
40#define get_cpu() ({ \ 41 sched_pin(); \ 42 PCPU_GET(cpuid); \ 43}) 44 45#define put_cpu() \ 46 sched_unpin() 47 |
|
40#endif /* _ASM_SMP_H_ */ | 48#endif /* _ASM_SMP_H_ */ |