sched: use __weak for arch_update_cpu_topology/sched_clock
PATCH 1/1 sched: use __weak for arch_update_cpu_topology/sched_clock
Use __weak macro instead of __attribute__((weak)).
Signed-off-by Kamalesh Babulal <[email protected]>
--- kernel/sched/clock.c | 2 +- kernel/sched/core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
kernel/sched/clock.c +1 -1
@@ -72,7 +72,7 @@* This is default implementation. * Architectures and sub-architectures can override this. */ -unsigned long long __attribute__((weak))sched_clock (void ) +unsigned long long __weak sched_clock (void ) {return (unsigned long long )(jiffies -INITIAL_JIFFIES ) * (NSEC_PER_SEC /HZ );
kernel/sched/core.c +1 -1
@@ -5885,7 +5885,7 @@ static cpumask_var_t fallback_doms;* cpu core maps. It is supposed to return 1 if the topology changed * or 0 if it stayed the same. */ -int __attribute__((weak))arch_update_cpu_topology (void ) +int __weak arch_update_cpu_topology (void ) {return 0 ; }
Signature · 1 line
1.8.4.474.g128a96c