Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt

* git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt:
clocksource: allow read access to available/current_clocksource
clocksource: Fix permissions for available_clocksource
hrtimer: remove duplicate helper function

+11 -17
+9
include/linux/hrtimer.h
··· 316 316 (HRTIMER_STATE_ENQUEUED | HRTIMER_STATE_PENDING); 317 317 } 318 318 319 + /* 320 + * Helper function to check, whether the timer is running the callback 321 + * function 322 + */ 323 + static inline int hrtimer_callback_running(struct hrtimer *timer) 324 + { 325 + return timer->state & HRTIMER_STATE_CALLBACK; 326 + } 327 + 319 328 /* Forward a hrtimer so it expires after now: */ 320 329 extern u64 321 330 hrtimer_forward(struct hrtimer *timer, ktime_t now, ktime_t interval);
-9
kernel/hrtimer.c
··· 154 154 } 155 155 156 156 /* 157 - * Helper function to check, whether the timer is running the callback 158 - * function 159 - */ 160 - static inline int hrtimer_callback_running(struct hrtimer *timer) 161 - { 162 - return timer->state & HRTIMER_STATE_CALLBACK; 163 - } 164 - 165 - /* 166 157 * Functions and macros which are different for UP/SMP systems are kept in a 167 158 * single place 168 159 */
+2 -2
kernel/time/clocksource.c
··· 471 471 /* 472 472 * Sysfs setup bits: 473 473 */ 474 - static SYSDEV_ATTR(current_clocksource, 0600, sysfs_show_current_clocksources, 474 + static SYSDEV_ATTR(current_clocksource, 0644, sysfs_show_current_clocksources, 475 475 sysfs_override_clocksource); 476 476 477 - static SYSDEV_ATTR(available_clocksource, 0600, 477 + static SYSDEV_ATTR(available_clocksource, 0444, 478 478 sysfs_show_available_clocksources, NULL); 479 479 480 480 static struct sysdev_class clocksource_sysclass = {
-6
net/can/bcm.c
··· 412 412 bcm_send_to_user(op, &head, data, 1); 413 413 } 414 414 415 - /* TODO: move to linux/hrtimer.h */ 416 - static inline int hrtimer_callback_running(struct hrtimer *timer) 417 - { 418 - return timer->state & HRTIMER_STATE_CALLBACK; 419 - } 420 - 421 415 /* 422 416 * bcm_rx_update_and_send - process a detected relevant receive content change 423 417 * 1. update the last received data