kernel: use macros from compiler.h instead of __attribute__((...))
[deliverable/linux.git] / kernel / sched / clock.c
index b30a2924ef1429a60152a40101ec4828c5e23268..3ef6451e972ed06571b94a4d19a11d78edd39bf6 100644 (file)
 #include <linux/sched.h>
 #include <linux/static_key.h>
 #include <linux/workqueue.h>
+#include <linux/compiler.h>
 
 /*
  * Scheduler clock - returns current time in nanosec units.
  * 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);
This page took 0.023456 seconds and 5 git commands to generate.