aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/lockdep.c2
-rw-r--r--kernel/relay.c3
-rw-r--r--kernel/sched.c4
-rw-r--r--kernel/sysctl.c3
-rw-r--r--kernel/timer.c3
5 files changed, 7 insertions, 8 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index a08a17218d..8dc24c92dc 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -2602,7 +2602,7 @@ out_restore:
2602 raw_local_irq_restore(flags); 2602 raw_local_irq_restore(flags);
2603} 2603}
2604 2604
2605void __init lockdep_init(void) 2605void lockdep_init(void)
2606{ 2606{
2607 int i; 2607 int i;
2608 2608
diff --git a/kernel/relay.c b/kernel/relay.c
index ef8a935710..577f251c7e 100644
--- a/kernel/relay.c
+++ b/kernel/relay.c
@@ -474,13 +474,12 @@ static void setup_callbacks(struct rchan *chan,
474} 474}
475 475
476/** 476/**
477 *
478 * relay_hotcpu_callback - CPU hotplug callback 477 * relay_hotcpu_callback - CPU hotplug callback
479 * @nb: notifier block 478 * @nb: notifier block
480 * @action: hotplug action to take 479 * @action: hotplug action to take
481 * @hcpu: CPU number 480 * @hcpu: CPU number
482 * 481 *
483 * Returns the success/failure of the operation. (NOTIFY_OK, NOTIFY_BAD) 482 * Returns the success/failure of the operation. (%NOTIFY_OK, %NOTIFY_BAD)
484 */ 483 */
485static int __cpuinit relay_hotcpu_callback(struct notifier_block *nb, 484static int __cpuinit relay_hotcpu_callback(struct notifier_block *nb,
486 unsigned long action, 485 unsigned long action,
diff --git a/kernel/sched.c b/kernel/sched.c
index 0dc757246d..5f102e6c7a 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3547,7 +3547,7 @@ need_resched_nonpreemptible:
3547 } 3547 }
3548 } 3548 }
3549 next->sleep_type = SLEEP_NORMAL; 3549 next->sleep_type = SLEEP_NORMAL;
3550 if (dependent_sleeper(cpu, rq, next)) 3550 if (rq->nr_running == 1 && dependent_sleeper(cpu, rq, next))
3551 next = rq->idle; 3551 next = rq->idle;
3552switch_tasks: 3552switch_tasks:
3553 if (next == rq->idle) 3553 if (next == rq->idle)
@@ -3566,7 +3566,7 @@ switch_tasks:
3566 3566
3567 sched_info_switch(prev, next); 3567 sched_info_switch(prev, next);
3568 if (likely(prev != next)) { 3568 if (likely(prev != next)) {
3569 next->timestamp = now; 3569 next->timestamp = next->last_ran = now;
3570 rq->nr_switches++; 3570 rq->nr_switches++;
3571 rq->curr = next; 3571 rq->curr = next;
3572 ++*switch_count; 3572 ++*switch_count;
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 3ca1d5ff03..34b2301276 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1359,8 +1359,7 @@ void unregister_sysctl_table(struct ctl_table_header * header)
1359} 1359}
1360 1360
1361#else /* !CONFIG_SYSCTL */ 1361#else /* !CONFIG_SYSCTL */
1362struct ctl_table_header * register_sysctl_table(ctl_table * table, 1362struct ctl_table_header *register_sysctl_table(ctl_table * table)
1363 int insert_at_head)
1364{ 1363{
1365 return NULL; 1364 return NULL;
1366} 1365}
diff --git a/kernel/timer.c b/kernel/timer.c
index cb1b86a9c5..6663a87f73 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -711,6 +711,7 @@ static unsigned long cmp_next_hrtimer_event(unsigned long now,
711 711
712/** 712/**
713 * next_timer_interrupt - return the jiffy of the next pending timer 713 * next_timer_interrupt - return the jiffy of the next pending timer
714 * @now: current time (in jiffies)
714 */ 715 */
715unsigned long get_next_timer_interrupt(unsigned long now) 716unsigned long get_next_timer_interrupt(unsigned long now)
716{ 717{
@@ -908,7 +909,7 @@ static inline void change_clocksource(void) { }
908#endif 909#endif
909 910
910/** 911/**
911 * timeofday_is_continuous - check to see if timekeeping is free running 912 * timekeeping_is_continuous - check to see if timekeeping is free running
912 */ 913 */
913int timekeeping_is_continuous(void) 914int timekeeping_is_continuous(void)
914{ 915{