treewide: Convert clockevents_notify to use int cpu
Subsystems (13)
PATCH 1/1 treewide: Convert clockevents_notify to use int cpu
As far as I can tell, there's no value indirecting the cpu passed to this function via a void *.
Update all the callers and called functions from within clockevents_notify.
Miscellanea:
Add pr_fmt and convert one printk(KERN_ERR to pr_err
--- arch/arm/mach-omap2/cpuidle44xx.c | 7 +++---- arch/arm/mach-tegra/cpuidle-tegra114.c | 4 ++-- arch/arm/mach-tegra/cpuidle-tegra20.c | 8 ++++---- arch/arm/mach-tegra/cpuidle-tegra30.c | 8 ++++---- arch/x86/kernel/process.c | 6 +++--- arch/x86/xen/suspend.c | 2 +- drivers/acpi/acpi_pad.c | 9 +++++---- drivers/acpi/processor_idle.c | 4 ++-- drivers/cpuidle/driver.c | 3 +-- drivers/idle/intel_idle.c | 7 +++---- include/linux/clockchips.h | 6 +++--- kernel/sched/idle.c | 4 ++-- kernel/time/clockevents.c | 15 +++++++-------- kernel/time/hrtimer.c | 6 ++---- kernel/time/tick-broadcast.c | 16 ++++++++-------- kernel/time/tick-common.c | 16 ++++++++-------- kernel/time/tick-internal.h | 18 +++++++++--------- kernel/time/timekeeping.c | 4 ++-- 18 files changed, 69 insertions(+), 74 deletions(-)
arch/arm/mach-omap2/cpuidle44xx.c +3 -4
@@ -112,7 +112,7 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev, mpuss_can_lose_context = (cx->mpu_state ==PWRDM_POWER_RET ) && (cx->mpu_logic_state ==PWRDM_POWER_OFF ); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu_id); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu_id);/* * Call idle CPU PM enter notifier chain so that
@@ -169,7 +169,7 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev,if (dev->cpu ==0 && mpuss_can_lose_context)cpu_cluster_pm_exit (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu_id); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu_id); fail:cpuidle_coupled_parallel_barrier (dev, &abort_barrier);
@@ -184,8 +184,7 @@ fail:*/ static void omap_setup_broadcast_timer (void *arg) { -int cpu =smp_processor_id (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON ,smp_processor_id ()); }static struct cpuidle_driver omap4_idle_driver = {
arch/arm/mach-tegra/cpuidle-tegra114.c +2 -2
@@ -44,7 +44,7 @@ static int tegra114_idle_power_down(struct cpuidle_device *dev,tegra_set_cpu_in_lp2 ();cpu_pm_enter (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);call_firmware_op (prepare_idle);
@@ -52,7 +52,7 @@ static int tegra114_idle_power_down(struct cpuidle_device *dev,if (call_firmware_op (do_idle,0 ) == -ENOSYS )cpu_suspend (0 , tegra30_sleep_cpu_secondary_finish); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);cpu_pm_exit ();tegra_clear_cpu_in_lp2 ();
arch/arm/mach-tegra/cpuidle-tegra20.c +4 -4
@@ -136,11 +136,11 @@ static bool tegra20_cpu_cluster_power_down(struct cpuidle_device *dev,if (tegra20_reset_cpu_1 () || !tegra_cpu_rail_off_ready ())return false; -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);tegra_idle_lp2_last (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);if (cpu_online (1 ))tegra20_wake_cpu1_from_reset ();
@@ -153,13 +153,13 @@ static bool tegra20_idle_enter_lp2_cpu_1(struct cpuidle_device *dev,struct cpuidle_driver *drv, int index) { - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, dev->cpu);cpu_suspend (0 , tegra20_sleep_cpu_secondary_finish);tegra20_cpu_clear_resettable (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }
arch/arm/mach-tegra/cpuidle-tegra30.c +4 -4
@@ -76,11 +76,11 @@ static bool tegra30_cpu_cluster_power_down(struct cpuidle_device *dev,return false; } -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);tegra_idle_lp2_last (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }
@@ -90,13 +90,13 @@ static bool tegra30_cpu_core_power_down(struct cpuidle_device *dev,struct cpuidle_driver *drv, int index) { - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, dev->cpu);smp_wmb ();cpu_suspend (0 , tegra30_sleep_cpu_secondary_finish); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }
arch/x86/kernel/process.c +3 -3
@@ -380,10 +380,10 @@ static void amd_e400_idle(void)* Force broadcast so ACPI can not interfere. */ clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_FORCE , - &cpu); + cpu);pr_info ("Switch to broadcast mode on CPU%d\n" , cpu); } -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);default_idle ();
@@ -392,7 +392,7 @@ static void amd_e400_idle(void)* called with interrupts disabled. */ local_irq_disable (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);local_irq_enable (); }else default_idle ();
arch/x86/xen/suspend.c +1 -1
@@ -87,7 +87,7 @@ static void xen_vcpu_notify_restore(void *data)if (smp_processor_id () ==0 )return ; -clockevents_notify (reason,NULL ); +clockevents_notify (reason,-1 ); }void xen_arch_resume (void )
drivers/acpi/acpi_pad.c +5 -4
@@ -180,17 +180,18 @@ static int power_saving_thread(void *data)if (lapic_detected_unstable && !lapic_marked_unstable) {int i;/* LAPIC could halt in idle, so notify users */ -for_each_online_cpu (i) +for_each_online_cpu (i) {clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON , - &i); + i); + } lapic_marked_unstable =1 ; }local_irq_disable (); cpu =smp_processor_id ();if (lapic_marked_unstable)clockevents_notify ( -CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);stop_critical_timings ();mwait_idle_with_hints (power_saving_mwait_eax,1 );
@@ -198,7 +199,7 @@ static int power_saving_thread(void *data)start_critical_timings ();if (lapic_marked_unstable)clockevents_notify ( -CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);local_irq_enable ();if (time_before (expire_time, jiffies)) {
drivers/acpi/processor_idle.c +2 -2
@@ -162,7 +162,7 @@ static void __lapic_timer_propagate_broadcast(void *arg) reason = pr->power.timer_broadcast_on_state <INT_MAX ?CLOCK_EVT_NOTIFY_BROADCAST_ON :CLOCK_EVT_NOTIFY_BROADCAST_OFF ; -clockevents_notify (reason, &pr->id); +clockevents_notify (reason, pr->id); }static void lapic_timer_propagate_broadcast (struct acpi_processor *pr)
@@ -183,7 +183,7 @@ static void lapic_timer_state_broadcast(struct acpi_processor *pr, reason = broadcast ?CLOCK_EVT_NOTIFY_BROADCAST_ENTER :CLOCK_EVT_NOTIFY_BROADCAST_EXIT ; -clockevents_notify (reason, &pr->id); +clockevents_notify (reason, pr->id); } }
drivers/cpuidle/driver.c +1 -2
@@ -143,8 +143,7 @@ static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv)*/ static void cpuidle_setup_broadcast_timer (void *arg) { -int cpu =smp_processor_id (); -clockevents_notify ((long )(arg), &cpu); +clockevents_notify ((long )arg,smp_processor_id ()); }/**
drivers/idle/intel_idle.c +3 -4
@@ -582,12 +582,12 @@ static int intel_idle(struct cpuidle_device *dev,leave_mm (cpu);if (!(lapic_timer_reliable_states & (1 << (cstate)))) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);mwait_idle_with_hints (eax, ecx);if (!(lapic_timer_reliable_states & (1 << (cstate)))) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);return index; }
@@ -595,12 +595,11 @@ static int intel_idle(struct cpuidle_device *dev,static void __setup_broadcast_timer (void *arg) {unsigned long reason = (unsigned long )arg; -int cpu =smp_processor_id (); reason = reason ?CLOCK_EVT_NOTIFY_BROADCAST_ON :CLOCK_EVT_NOTIFY_BROADCAST_OFF ; -clockevents_notify (reason, &cpu); +clockevents_notify (reason,smp_processor_id ()); } static int cpu_hotplug_notify(struct notifier_block *n,
include/linux/clockchips.h +3 -3
@@ -195,9 +195,9 @@ static inline void tick_setup_hrtimer_broadcast(void) {};#endif #ifdef CONFIG_GENERIC_CLOCKEVENTS -extern int clockevents_notify (unsigned long reason,void *arg); +extern int clockevents_notify (unsigned long reason,int cpu);#else -static inline int clockevents_notify (unsigned long reason,void *arg) {return 0 ; } +static inline int clockevents_notify (unsigned long reason,int cpu) {return 0 ; }#endif #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */
@@ -205,7 +205,7 @@ static inline int clockevents_notify(unsigned long reason, void *arg) { return 0static inline void clockevents_suspend (void ) {}static inline void clockevents_resume (void ) {} -static inline int clockevents_notify (unsigned long reason,void *arg) {return 0 ; } +static inline int clockevents_notify (unsigned long reason,int cpu) {return 0 ; }static inline int tick_check_broadcast_expired (void ) {return 0 ; }static inline void tick_setup_hrtimer_broadcast (void ) {};
kernel/sched/idle.c +2 -2
@@ -144,7 +144,7 @@ use_default:* fail if it is not available */ if (broadcast && -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu)) +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu)) goto use_default;/* Take note of the planned idle state. */
@@ -161,7 +161,7 @@ use_default:idle_set_state (this_rq (),NULL );if (broadcast) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);/* * Give the governor an opportunity to reflect on the outcome
kernel/time/clockevents.c +7 -8
@@ -546,11 +546,11 @@ void clockevents_resume(void)* clockevents_notify - notification about relevant events * Returns 0 on success, any other value on error */ -int clockevents_notify (unsigned long reason,void *arg) +int clockevents_notify (unsigned long reason,int cpu) {struct clock_event_device *dev, *tmp;unsigned long flags; -int cpu, ret =0 ; +int ret =0 ;raw_spin_lock_irqsave (&clockevents_lock, flags);
@@ -558,7 +558,7 @@ int clockevents_notify(unsigned long reason, void *arg)case CLOCK_EVT_NOTIFY_BROADCAST_ON :case CLOCK_EVT_NOTIFY_BROADCAST_OFF :case CLOCK_EVT_NOTIFY_BROADCAST_FORCE : -tick_broadcast_on_off (reason, arg); +tick_broadcast_on_off (reason, cpu);break ;case CLOCK_EVT_NOTIFY_BROADCAST_ENTER :
@@ -567,7 +567,7 @@ int clockevents_notify(unsigned long reason, void *arg)break ;case CLOCK_EVT_NOTIFY_CPU_DYING : -tick_handover_do_timer (arg); +tick_handover_do_timer (cpu);break ;case CLOCK_EVT_NOTIFY_SUSPEND :
@@ -580,9 +580,9 @@ int clockevents_notify(unsigned long reason, void *arg)break ;case CLOCK_EVT_NOTIFY_CPU_DEAD : -tick_shutdown_broadcast_oneshot (arg); -tick_shutdown_broadcast (arg); -tick_shutdown (arg); +tick_shutdown_broadcast_oneshot (cpu); +tick_shutdown_broadcast (cpu); +tick_shutdown (cpu);/* * Unregister the clock event devices which were * released from the users in the notify chain.
@@ -592,7 +592,6 @@ int clockevents_notify(unsigned long reason, void *arg)/* * Now check whether the CPU has left unused per cpu devices */ - cpu = *((int *)arg);list_for_each_entry_safe (dev, tmp, &clockevent_devices, list) { if (cpumask_test_cpu(cpu, dev->cpumask) && cpumask_weight(dev->cpumask) == 1 &&
kernel/time/hrtimer.c +2 -4
@@ -1717,15 +1717,13 @@ static int hrtimer_cpu_notify(struct notifier_block *self,#ifdef CONFIG_HOTPLUG_CPU case CPU_DYING :case CPU_DYING_FROZEN : -clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DYING , &scpu); +clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DYING , scpu);break ;case CPU_DEAD :case CPU_DEAD_FROZEN : - { -clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DEAD , &scpu); +clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DEAD , scpu);migrate_hrtimers (scpu);break ; - }#endif default :
kernel/time/tick-broadcast.c +8 -8
@@ -11,6 +11,9 @@* This code is licenced under the GPL version 2. For details see * kernel-base/COPYING. */ + +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/cpu.h> #include <linux/err.h> #include <linux/hrtimer.h>
@@ -396,11 +399,10 @@ out:* Powerstate information: The system enters/leaves a state, where * affected devices might stop. */ -void tick_broadcast_on_off (unsigned long reason,int *oncpu) +void tick_broadcast_on_off (unsigned long reason,int oncpu) { -if (!cpumask_test_cpu (*oncpu, cpu_online_mask)) -printk (KERN_ERR "tick-broadcast: ignoring broadcast for " -"offline CPU #%d\n" , *oncpu); +if (!cpumask_test_cpu (oncpu, cpu_online_mask)) +pr_err ("ignoring broadcast for offline CPU #%d\n" , oncpu);else tick_do_broadcast_on_off (&reason); }
@@ -419,11 +421,10 @@ void tick_set_periodic_handler(struct clock_event_device *dev, int broadcast)/* * Remove a CPU from broadcasting */ -void tick_shutdown_broadcast (unsigned int *cpup) +void tick_shutdown_broadcast (int cpu) {struct clock_event_device *bc;unsigned long flags; -unsigned int cpu = *cpup;raw_spin_lock_irqsave (&tick_broadcast_lock, flags);
@@ -898,10 +899,9 @@ void tick_broadcast_switch_to_oneshot(void)/* * Remove a dead CPU from broadcasting */ -void tick_shutdown_broadcast_oneshot (unsigned int *cpup) +void tick_shutdown_broadcast_oneshot (int cpu) {unsigned long flags; -unsigned int cpu = *cpup;raw_spin_lock_irqsave (&tick_broadcast_lock, flags);
kernel/time/tick-common.c +8 -8
@@ -337,14 +337,14 @@ out_bc:* * Called with interrupts disabled. */ -void tick_handover_do_timer (int *cpup) +void tick_handover_do_timer (int cpu) { -if (*cpup == tick_do_timer_cpu) { -int cpu =cpumask_first (cpu_online_mask); +if (cpu != tick_do_timer_cpu) +return ; - tick_do_timer_cpu = (cpu < nr_cpu_ids) ? cpu : -TICK_DO_TIMER_NONE ; - } + cpu =cpumask_first (cpu_online_mask); + + tick_do_timer_cpu = (cpu < nr_cpu_ids) ? cpu :TICK_DO_TIMER_NONE ; }/*
@@ -354,9 +354,9 @@ void tick_handover_do_timer(int *cpup)* access the hardware device itself. * We just set the mode and remove it from the lists. */ -void tick_shutdown (unsigned int *cpup) +void tick_shutdown (int cpu) { -struct tick_device *td = &per_cpu (tick_cpu_device, *cpup); +struct tick_device *td = &per_cpu (tick_cpu_device, cpu);struct clock_event_device *dev = td->evtdev; td->mode =TICKDEV_MODE_PERIODIC ;
kernel/time/tick-internal.h +9 -9
@@ -23,8 +23,8 @@ extern int tick_do_timer_cpu __read_mostly;extern void tick_setup_periodic (struct clock_event_device *dev,int broadcast);extern void tick_handle_periodic (struct clock_event_device *dev);extern void tick_check_new_device (struct clock_event_device *dev); -extern void tick_handover_do_timer (int *cpup); -extern void tick_shutdown (unsigned int *cpup); +extern void tick_handover_do_timer (int cpu); +extern void tick_shutdown (int cpu);extern void tick_suspend (void );extern void tick_resume (void ); extern bool tick_check_replacement(struct clock_event_device *curdev,
@@ -50,7 +50,7 @@ extern void tick_resume_oneshot(void);extern void tick_broadcast_setup_oneshot (struct clock_event_device *bc);extern int tick_broadcast_oneshot_control (unsigned long reason);extern void tick_broadcast_switch_to_oneshot (void ); -extern void tick_shutdown_broadcast_oneshot (unsigned int *cpup); +extern void tick_shutdown_broadcast_oneshot (int cpu);extern int tick_resume_broadcast_oneshot (struct clock_event_device *bc);extern int tick_broadcast_oneshot_active (void );extern void tick_check_oneshot_broadcast_this_cpu (void );
@@ -62,7 +62,7 @@ static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc) }static inline int tick_broadcast_oneshot_control (unsigned long reason) {return 0 ; }static inline void tick_broadcast_switch_to_oneshot (void ) { } -static inline void tick_shutdown_broadcast_oneshot (unsigned int *cpup) { } +static inline void tick_shutdown_broadcast_oneshot (int cpu) { }static inline int tick_broadcast_oneshot_active (void ) {return 0 ; }static inline void tick_check_oneshot_broadcast_this_cpu (void ) { }static inline bool tick_broadcast_oneshot_available (void ) {return true; }
@@ -90,7 +90,7 @@ static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc)BUG (); }static inline int tick_broadcast_oneshot_control (unsigned long reason) {return 0 ; } -static inline void tick_shutdown_broadcast_oneshot (unsigned int *cpup) { } +static inline void tick_shutdown_broadcast_oneshot (int cpu) { }static inline int tick_resume_broadcast_oneshot (struct clock_event_device *bc) {return 0 ;
@@ -113,8 +113,8 @@ static inline void tick_nohz_init(void) { }extern int tick_device_uses_broadcast (struct clock_event_device *dev,int cpu);extern void tick_install_broadcast_device (struct clock_event_device *dev);extern int tick_is_broadcast_device (struct clock_event_device *dev); -extern void tick_broadcast_on_off (unsigned long reason,int *oncpu); -extern void tick_shutdown_broadcast (unsigned int *cpup); +extern void tick_broadcast_on_off (unsigned long reason,int oncpu); +extern void tick_shutdown_broadcast (int cpu);extern void tick_suspend_broadcast (void );extern int tick_resume_broadcast (void );extern void tick_broadcast_init (void );
@@ -138,8 +138,8 @@ static inline int tick_device_uses_broadcast(struct clock_event_device *dev,return 0 ; }static inline void tick_do_periodic_broadcast (struct clock_event_device *d) { } -static inline void tick_broadcast_on_off (unsigned long reason,int *oncpu) { } -static inline void tick_shutdown_broadcast (unsigned int *cpup) { } +static inline void tick_broadcast_on_off (unsigned long reason,int oncpu) { } +static inline void tick_shutdown_broadcast (int cpu) { }static inline void tick_suspend_broadcast (void ) { }static inline int tick_resume_broadcast (void ) {return 0 ; }static inline void tick_broadcast_init (void ) { }
kernel/time/timekeeping.c +2 -2
@@ -1245,7 +1245,7 @@ static void timekeeping_resume(void)touch_softlockup_watchdog (); -clockevents_notify (CLOCK_EVT_NOTIFY_RESUME ,NULL ); +clockevents_notify (CLOCK_EVT_NOTIFY_RESUME ,-1 );/* Resume hrtimers */ hrtimers_resume ();
@@ -1299,7 +1299,7 @@ static int timekeeping_suspend(void)write_seqcount_end (&tk_core.seq);raw_spin_unlock_irqrestore (&timekeeper_lock, flags); -clockevents_notify (CLOCK_EVT_NOTIFY_SUSPEND ,NULL ); +clockevents_notify (CLOCK_EVT_NOTIFY_SUSPEND ,-1 );clocksource_suspend ();clockevents_suspend ();
Quoted 9 lines · Joe Perches
As far as I can tell, there's no value indirecting the cpu passed to this function via a void *.
Update all the callers and called functions from within
clockevents_notify.Miscellanea:
Add
pr_fmtand convert one printk(KERN_ERR topr_err
That is fine by me, so
for the cpuidle and ACPI changes.
Quoted 596 lines
Signed-off-by Joe Perches <[email protected]>--- arch/arm/mach-omap2/cpuidle44xx.c | 7 +++---- arch/arm/mach-tegra/cpuidle-tegra114.c | 4 ++-- arch/arm/mach-tegra/cpuidle-tegra20.c | 8 ++++---- arch/arm/mach-tegra/cpuidle-tegra30.c | 8 ++++---- arch/x86/kernel/process.c | 6 +++--- arch/x86/xen/suspend.c | 2 +- drivers/acpi/acpi_pad.c | 9 +++++---- drivers/acpi/processor_idle.c | 4 ++-- drivers/cpuidle/driver.c | 3 +-- drivers/idle/intel_idle.c | 7 +++---- include/linux/clockchips.h | 6 +++--- kernel/sched/idle.c | 4 ++-- kernel/time/clockevents.c | 15 +++++++-------- kernel/time/hrtimer.c | 6 ++---- kernel/time/tick-broadcast.c | 16 ++++++++-------- kernel/time/tick-common.c | 16 ++++++++-------- kernel/time/tick-internal.h | 18 +++++++++--------- kernel/time/timekeeping.c | 4 ++-- 18 files changed, 69 insertions(+), 74 deletions(-)arch/arm/mach-omap2/cpuidle44xx.c +3
-4@@ -112,7 +112,7 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev, mpuss_can_lose_context = (cx->mpu_state ==PWRDM_POWER_RET ) && (cx->mpu_logic_state ==PWRDM_POWER_OFF ); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu_id); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu_id);/* * Call idle CPU PM enter notifier chain so that @@ -169,7 +169,7 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev,if (dev->cpu ==0 && mpuss_can_lose_context)cpu_cluster_pm_exit (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu_id); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu_id); fail:cpuidle_coupled_parallel_barrier (dev, &abort_barrier);@@ -184,8 +184,7 @@ fail:*/ static void omap_setup_broadcast_timer (void *arg) { -int cpu =smp_processor_id (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON ,smp_processor_id ()); }static struct cpuidle_driver omap4_idle_driver = {arch/arm/mach-tegra/cpuidle-tegra114.c +2
-2@@ -44,7 +44,7 @@ static int tegra114_idle_power_down(struct cpuidle_device *dev,tegra_set_cpu_in_lp2 ();cpu_pm_enter (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);call_firmware_op (prepare_idle);@@ -52,7 +52,7 @@ static int tegra114_idle_power_down(struct cpuidle_device *dev,if (call_firmware_op (do_idle,0 ) == -ENOSYS )cpu_suspend (0 , tegra30_sleep_cpu_secondary_finish); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);cpu_pm_exit ();tegra_clear_cpu_in_lp2 ();arch/arm/mach-tegra/cpuidle-tegra20.c +4
-4@@ -136,11 +136,11 @@ static bool tegra20_cpu_cluster_power_down(struct cpuidle_device *dev,if (tegra20_reset_cpu_1 () || !tegra_cpu_rail_off_ready ())return false; -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);tegra_idle_lp2_last (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);if (cpu_online (1 ))tegra20_wake_cpu1_from_reset ();@@ -153,13 +153,13 @@ static bool tegra20_idle_enter_lp2_cpu_1(struct cpuidle_device *dev,struct cpuidle_driver *drv, int index) { - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, dev->cpu);cpu_suspend (0 , tegra20_sleep_cpu_secondary_finish);tegra20_cpu_clear_resettable (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }arch/arm/mach-tegra/cpuidle-tegra30.c +4
-4@@ -76,11 +76,11 @@ static bool tegra30_cpu_cluster_power_down(struct cpuidle_device *dev,return false; } -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);tegra_idle_lp2_last (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }@@ -90,13 +90,13 @@ static bool tegra30_cpu_core_power_down(struct cpuidle_device *dev,struct cpuidle_driver *drv, int index) { - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, dev->cpu);smp_wmb ();cpu_suspend (0 , tegra30_sleep_cpu_secondary_finish); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }arch/x86/kernel/process.c +3
-3@@ -380,10 +380,10 @@ static void amd_e400_idle(void)* Force broadcast so ACPI can not interfere. */ clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_FORCE , - &cpu); + cpu);pr_info ("Switch to broadcast mode on CPU%d\n" , cpu); } -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);default_idle ();@@ -392,7 +392,7 @@ static void amd_e400_idle(void)* called with interrupts disabled. */ local_irq_disable (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);local_irq_enable (); }else default_idle ();arch/x86/xen/suspend.c +1
-1@@ -87,7 +87,7 @@ static void xen_vcpu_notify_restore(void *data)if (smp_processor_id () ==0 )return ; -clockevents_notify (reason,NULL ); +clockevents_notify (reason,-1 ); }void xen_arch_resume (void )drivers/acpi/acpi_pad.c +5
-4@@ -180,17 +180,18 @@ static int power_saving_thread(void *data)if (lapic_detected_unstable && !lapic_marked_unstable) {int i;/* LAPIC could halt in idle, so notify users */ -for_each_online_cpu (i) +for_each_online_cpu (i) {clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON , - &i); + i); + } lapic_marked_unstable =1 ; }local_irq_disable (); cpu =smp_processor_id ();if (lapic_marked_unstable)clockevents_notify ( -CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);stop_critical_timings ();mwait_idle_with_hints (power_saving_mwait_eax,1 );@@ -198,7 +199,7 @@ static int power_saving_thread(void *data)start_critical_timings ();if (lapic_marked_unstable)clockevents_notify ( -CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);local_irq_enable ();if (time_before (expire_time, jiffies)) {drivers/acpi/processor_idle.c +2
-2@@ -162,7 +162,7 @@ static void __lapic_timer_propagate_broadcast(void *arg) reason = pr->power.timer_broadcast_on_state <INT_MAX ?CLOCK_EVT_NOTIFY_BROADCAST_ON :CLOCK_EVT_NOTIFY_BROADCAST_OFF ; -clockevents_notify (reason, &pr->id); +clockevents_notify (reason, pr->id); }static void lapic_timer_propagate_broadcast (struct acpi_processor *pr)@@ -183,7 +183,7 @@ static void lapic_timer_state_broadcast(struct acpi_processor *pr, reason = broadcast ?CLOCK_EVT_NOTIFY_BROADCAST_ENTER :CLOCK_EVT_NOTIFY_BROADCAST_EXIT ; -clockevents_notify (reason, &pr->id); +clockevents_notify (reason, pr->id); } }drivers/cpuidle/driver.c +1
-2@@ -143,8 +143,7 @@ static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv)*/ static void cpuidle_setup_broadcast_timer (void *arg) { -int cpu =smp_processor_id (); -clockevents_notify ((long )(arg), &cpu); +clockevents_notify ((long )arg,smp_processor_id ()); }/** drivers/idle/intel_idle.c +3
-4@@ -582,12 +582,12 @@ static int intel_idle(struct cpuidle_device *dev,leave_mm (cpu);if (!(lapic_timer_reliable_states & (1 << (cstate)))) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);mwait_idle_with_hints (eax, ecx);if (!(lapic_timer_reliable_states & (1 << (cstate)))) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);return index; }@@ -595,12 +595,11 @@ static int intel_idle(struct cpuidle_device *dev,static void __setup_broadcast_timer (void *arg) {unsigned long reason = (unsigned long )arg; -int cpu =smp_processor_id (); reason = reason ?CLOCK_EVT_NOTIFY_BROADCAST_ON :CLOCK_EVT_NOTIFY_BROADCAST_OFF ; -clockevents_notify (reason, &cpu); +clockevents_notify (reason,smp_processor_id ()); } static int cpu_hotplug_notify(struct notifier_block *n,include/linux/clockchips.h +3
-3@@ -195,9 +195,9 @@ static inline void tick_setup_hrtimer_broadcast(void) {};#endif #ifdef CONFIG_GENERIC_CLOCKEVENTS -extern int clockevents_notify (unsigned long reason,void *arg); +extern int clockevents_notify (unsigned long reason,int cpu);#else -static inline int clockevents_notify (unsigned long reason,void *arg) {return 0 ; } +static inline int clockevents_notify (unsigned long reason,int cpu) {return 0 ; }#endif #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */ @@ -205,7 +205,7 @@ static inline int clockevents_notify(unsigned long reason, void *arg) { return 0static inline void clockevents_suspend (void ) {}static inline void clockevents_resume (void ) {} -static inline int clockevents_notify (unsigned long reason,void *arg) {return 0 ; } +static inline int clockevents_notify (unsigned long reason,int cpu) {return 0 ; }static inline int tick_check_broadcast_expired (void ) {return 0 ; }static inline void tick_setup_hrtimer_broadcast (void ) {};kernel/sched/idle.c +2
-2@@ -144,7 +144,7 @@ use_default:* fail if it is not available */ if (broadcast && -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu)) +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu)) goto use_default;/* Take note of the planned idle state. */ @@ -161,7 +161,7 @@ use_default:idle_set_state (this_rq (),NULL );if (broadcast) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);/* * Give the governor an opportunity to reflect on the outcome kernel/time/clockevents.c +7
-8@@ -546,11 +546,11 @@ void clockevents_resume(void)* clockevents_notify - notification about relevant events * Returns 0 on success, any other value on error */ -int clockevents_notify (unsigned long reason,void *arg) +int clockevents_notify (unsigned long reason,int cpu) {struct clock_event_device *dev, *tmp;unsigned long flags; -int cpu, ret =0 ; +int ret =0 ;raw_spin_lock_irqsave (&clockevents_lock, flags);@@ -558,7 +558,7 @@ int clockevents_notify(unsigned long reason, void *arg)case CLOCK_EVT_NOTIFY_BROADCAST_ON :case CLOCK_EVT_NOTIFY_BROADCAST_OFF :case CLOCK_EVT_NOTIFY_BROADCAST_FORCE : -tick_broadcast_on_off (reason, arg); +tick_broadcast_on_off (reason, cpu);break ;case CLOCK_EVT_NOTIFY_BROADCAST_ENTER :@@ -567,7 +567,7 @@ int clockevents_notify(unsigned long reason, void *arg)break ;case CLOCK_EVT_NOTIFY_CPU_DYING : -tick_handover_do_timer (arg); +tick_handover_do_timer (cpu);break ;case CLOCK_EVT_NOTIFY_SUSPEND :@@ -580,9 +580,9 @@ int clockevents_notify(unsigned long reason, void *arg)break ;case CLOCK_EVT_NOTIFY_CPU_DEAD : -tick_shutdown_broadcast_oneshot (arg); -tick_shutdown_broadcast (arg); -tick_shutdown (arg); +tick_shutdown_broadcast_oneshot (cpu); +tick_shutdown_broadcast (cpu); +tick_shutdown (cpu);/* * Unregister the clock event devices which were * released from the users in the notify chain. @@ -592,7 +592,6 @@ int clockevents_notify(unsigned long reason, void *arg)/* * Now check whether the CPU has left unused per cpu devices */ - cpu = *((int *)arg);list_for_each_entry_safe (dev, tmp, &clockevent_devices, list) { if (cpumask_test_cpu(cpu, dev->cpumask) && cpumask_weight(dev->cpumask) == 1 &&kernel/time/hrtimer.c +2
-4@@ -1717,15 +1717,13 @@ static int hrtimer_cpu_notify(struct notifier_block *self,#ifdef CONFIG_HOTPLUG_CPU case CPU_DYING :case CPU_DYING_FROZEN : -clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DYING , &scpu); +clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DYING , scpu);break ;case CPU_DEAD :case CPU_DEAD_FROZEN : - { -clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DEAD , &scpu); +clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DEAD , scpu);migrate_hrtimers (scpu);break ; - }#endif default :kernel/time/tick-broadcast.c +8
-8@@ -11,6 +11,9 @@* This code is licenced under the GPL version 2. For details see * kernel-base/COPYING. */ + +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/cpu.h> #include <linux/err.h> #include <linux/hrtimer.h> @@ -396,11 +399,10 @@ out:* Powerstate information: The system enters/leaves a state, where * affected devices might stop. */ -void tick_broadcast_on_off (unsigned long reason,int *oncpu) +void tick_broadcast_on_off (unsigned long reason,int oncpu) { -if (!cpumask_test_cpu (*oncpu, cpu_online_mask)) -printk (KERN_ERR "tick-broadcast: ignoring broadcast for " -"offline CPU #%d\n" , *oncpu); +if (!cpumask_test_cpu (oncpu, cpu_online_mask)) +pr_err ("ignoring broadcast for offline CPU #%d\n" , oncpu);else tick_do_broadcast_on_off (&reason); }@@ -419,11 +421,10 @@ void tick_set_periodic_handler(struct clock_event_device *dev, int broadcast)/* * Remove a CPU from broadcasting */ -void tick_shutdown_broadcast (unsigned int *cpup) +void tick_shutdown_broadcast (int cpu) {struct clock_event_device *bc;unsigned long flags; -unsigned int cpu = *cpup;raw_spin_lock_irqsave (&tick_broadcast_lock, flags);@@ -898,10 +899,9 @@ void tick_broadcast_switch_to_oneshot(void)/* * Remove a dead CPU from broadcasting */ -void tick_shutdown_broadcast_oneshot (unsigned int *cpup) +void tick_shutdown_broadcast_oneshot (int cpu) {unsigned long flags; -unsigned int cpu = *cpup;raw_spin_lock_irqsave (&tick_broadcast_lock, flags);kernel/time/tick-common.c +8
-8@@ -337,14 +337,14 @@ out_bc:* * Called with interrupts disabled. */ -void tick_handover_do_timer (int *cpup) +void tick_handover_do_timer (int cpu) { -if (*cpup == tick_do_timer_cpu) { -int cpu =cpumask_first (cpu_online_mask); +if (cpu != tick_do_timer_cpu) +return ; - tick_do_timer_cpu = (cpu < nr_cpu_ids) ? cpu : -TICK_DO_TIMER_NONE ; - } + cpu =cpumask_first (cpu_online_mask); + + tick_do_timer_cpu = (cpu < nr_cpu_ids) ? cpu :TICK_DO_TIMER_NONE ; }/* @@ -354,9 +354,9 @@ void tick_handover_do_timer(int *cpup)* access the hardware device itself. * We just set the mode and remove it from the lists. */ -void tick_shutdown (unsigned int *cpup) +void tick_shutdown (int cpu) { -struct tick_device *td = &per_cpu (tick_cpu_device, *cpup); +struct tick_device *td = &per_cpu (tick_cpu_device, cpu);struct clock_event_device *dev = td->evtdev; td->mode =TICKDEV_MODE_PERIODIC ;kernel/time/tick-internal.h +9
-9@@ -23,8 +23,8 @@ extern int tick_do_timer_cpu __read_mostly;extern void tick_setup_periodic (struct clock_event_device *dev,int broadcast);extern void tick_handle_periodic (struct clock_event_device *dev);extern void tick_check_new_device (struct clock_event_device *dev); -extern void tick_handover_do_timer (int *cpup); -extern void tick_shutdown (unsigned int *cpup); +extern void tick_handover_do_timer (int cpu); +extern void tick_shutdown (int cpu);extern void tick_suspend (void );extern void tick_resume (void ); extern bool tick_check_replacement(struct clock_event_device *curdev,@@ -50,7 +50,7 @@ extern void tick_resume_oneshot(void);extern void tick_broadcast_setup_oneshot (struct clock_event_device *bc);extern int tick_broadcast_oneshot_control (unsigned long reason);extern void tick_broadcast_switch_to_oneshot (void ); -extern void tick_shutdown_broadcast_oneshot (unsigned int *cpup); +extern void tick_shutdown_broadcast_oneshot (int cpu);extern int tick_resume_broadcast_oneshot (struct clock_event_device *bc);extern int tick_broadcast_oneshot_active (void );extern void tick_check_oneshot_broadcast_this_cpu (void );@@ -62,7 +62,7 @@ static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc) }static inline int tick_broadcast_oneshot_control (unsigned long reason) {return 0 ; }static inline void tick_broadcast_switch_to_oneshot (void ) { } -static inline void tick_shutdown_broadcast_oneshot (unsigned int *cpup) { } +static inline void tick_shutdown_broadcast_oneshot (int cpu) { }static inline int tick_broadcast_oneshot_active (void ) {return 0 ; }static inline void tick_check_oneshot_broadcast_this_cpu (void ) { }static inline bool tick_broadcast_oneshot_available (void ) {return true; }@@ -90,7 +90,7 @@ static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc)BUG (); }static inline int tick_broadcast_oneshot_control (unsigned long reason) {return 0 ; } -static inline void tick_shutdown_broadcast_oneshot (unsigned int *cpup) { } +static inline void tick_shutdown_broadcast_oneshot (int cpu) { }static inline int tick_resume_broadcast_oneshot (struct clock_event_device *bc) {return 0 ;@@ -113,8 +113,8 @@ static inline void tick_nohz_init(void) { }extern int tick_device_uses_broadcast (struct clock_event_device *dev,int cpu);extern void tick_install_broadcast_device (struct clock_event_device *dev);extern int tick_is_broadcast_device (struct clock_event_device *dev); -extern void tick_broadcast_on_off (unsigned long reason,int *oncpu); -extern void tick_shutdown_broadcast (unsigned int *cpup); +extern void tick_broadcast_on_off (unsigned long reason,int oncpu); +extern void tick_shutdown_broadcast (int cpu);extern void tick_suspend_broadcast (void );extern int tick_resume_broadcast (void );extern void tick_broadcast_init (void );@@ -138,8 +138,8 @@ static inline int tick_device_uses_broadcast(struct clock_event_device *dev,return 0 ; }static inline void tick_do_periodic_broadcast (struct clock_event_device *d) { } -static inline void tick_broadcast_on_off (unsigned long reason,int *oncpu) { } -static inline void tick_shutdown_broadcast (unsigned int *cpup) { } +static inline void tick_broadcast_on_off (unsigned long reason,int oncpu) { } +static inline void tick_shutdown_broadcast (int cpu) { }static inline void tick_suspend_broadcast (void ) { }static inline int tick_resume_broadcast (void ) {return 0 ; }static inline void tick_broadcast_init (void ) { }kernel/time/timekeeping.c +2
-3@@ -1245,7 +1245,7 @@ static void timekeeping_resume(void)touch_softlockup_watchdog (); -clockevents_notify (CLOCK_EVT_NOTIFY_RESUME ,NULL ); +clockevents_notify (CLOCK_EVT_NOTIFY_RESUME ,-1 );/* Resume hrtimers */ hrtimers_resume ();@@ -1299,7 +1299,7 @@ static int timekeeping_suspend(void)write_seqcount_end (&tk_core.seq);raw_spin_unlock_irqrestore (&timekeeper_lock, flags); -clockevents_notify (CLOCK_EVT_NOTIFY_SUSPEND ,NULL ); +clockevents_notify (CLOCK_EVT_NOTIFY_SUSPEND ,-1 );clocksource_suspend ();clockevents_suspend (); --To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Quoted 9 lines · Joe Perches
As far as I can tell, there's no value indirecting the cpu passed to this function via a void *.
Update all the callers and called functions from within
clockevents_notify.Miscellanea:
Add
pr_fmtand convert one printk(KERN_ERR topr_err
That is fine by me, so
for the cpuidle and ACPI changes.
Quoted 596 lines
Signed-off-by Joe Perches <[email protected]>--- arch/arm/mach-omap2/cpuidle44xx.c | 7 +++---- arch/arm/mach-tegra/cpuidle-tegra114.c | 4 ++-- arch/arm/mach-tegra/cpuidle-tegra20.c | 8 ++++---- arch/arm/mach-tegra/cpuidle-tegra30.c | 8 ++++---- arch/x86/kernel/process.c | 6 +++--- arch/x86/xen/suspend.c | 2 +- drivers/acpi/acpi_pad.c | 9 +++++---- drivers/acpi/processor_idle.c | 4 ++-- drivers/cpuidle/driver.c | 3 +-- drivers/idle/intel_idle.c | 7 +++---- include/linux/clockchips.h | 6 +++--- kernel/sched/idle.c | 4 ++-- kernel/time/clockevents.c | 15 +++++++-------- kernel/time/hrtimer.c | 6 ++---- kernel/time/tick-broadcast.c | 16 ++++++++-------- kernel/time/tick-common.c | 16 ++++++++-------- kernel/time/tick-internal.h | 18 +++++++++--------- kernel/time/timekeeping.c | 4 ++-- 18 files changed, 69 insertions(+), 74 deletions(-)arch/arm/mach-omap2/cpuidle44xx.c +3
-4@@ -112,7 +112,7 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev, mpuss_can_lose_context = (cx->mpu_state ==PWRDM_POWER_RET ) && (cx->mpu_logic_state ==PWRDM_POWER_OFF ); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu_id); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu_id);/* * Call idle CPU PM enter notifier chain so that @@ -169,7 +169,7 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev,if (dev->cpu ==0 && mpuss_can_lose_context)cpu_cluster_pm_exit (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu_id); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu_id); fail:cpuidle_coupled_parallel_barrier (dev, &abort_barrier);@@ -184,8 +184,7 @@ fail:*/ static void omap_setup_broadcast_timer (void *arg) { -int cpu =smp_processor_id (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON ,smp_processor_id ()); }static struct cpuidle_driver omap4_idle_driver = {arch/arm/mach-tegra/cpuidle-tegra114.c +2
-2@@ -44,7 +44,7 @@ static int tegra114_idle_power_down(struct cpuidle_device *dev,tegra_set_cpu_in_lp2 ();cpu_pm_enter (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);call_firmware_op (prepare_idle);@@ -52,7 +52,7 @@ static int tegra114_idle_power_down(struct cpuidle_device *dev,if (call_firmware_op (do_idle,0 ) == -ENOSYS )cpu_suspend (0 , tegra30_sleep_cpu_secondary_finish); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);cpu_pm_exit ();tegra_clear_cpu_in_lp2 ();arch/arm/mach-tegra/cpuidle-tegra20.c +4
-4@@ -136,11 +136,11 @@ static bool tegra20_cpu_cluster_power_down(struct cpuidle_device *dev,if (tegra20_reset_cpu_1 () || !tegra_cpu_rail_off_ready ())return false; -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);tegra_idle_lp2_last (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);if (cpu_online (1 ))tegra20_wake_cpu1_from_reset ();@@ -153,13 +153,13 @@ static bool tegra20_idle_enter_lp2_cpu_1(struct cpuidle_device *dev,struct cpuidle_driver *drv, int index) { - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, dev->cpu);cpu_suspend (0 , tegra20_sleep_cpu_secondary_finish);tegra20_cpu_clear_resettable (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }arch/arm/mach-tegra/cpuidle-tegra30.c +4
-4@@ -76,11 +76,11 @@ static bool tegra30_cpu_cluster_power_down(struct cpuidle_device *dev,return false; } -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu);tegra_idle_lp2_last (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }@@ -90,13 +90,13 @@ static bool tegra30_cpu_core_power_down(struct cpuidle_device *dev,struct cpuidle_driver *drv, int index) { - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, dev->cpu);smp_wmb ();cpu_suspend (0 , tegra30_sleep_cpu_secondary_finish); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);return true; }arch/x86/kernel/process.c +3
-3@@ -380,10 +380,10 @@ static void amd_e400_idle(void)* Force broadcast so ACPI can not interfere. */ clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_FORCE , - &cpu); + cpu);pr_info ("Switch to broadcast mode on CPU%d\n" , cpu); } -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);default_idle ();@@ -392,7 +392,7 @@ static void amd_e400_idle(void)* called with interrupts disabled. */ local_irq_disable (); -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);local_irq_enable (); }else default_idle ();arch/x86/xen/suspend.c +1
-1@@ -87,7 +87,7 @@ static void xen_vcpu_notify_restore(void *data)if (smp_processor_id () ==0 )return ; -clockevents_notify (reason,NULL ); +clockevents_notify (reason,-1 ); }void xen_arch_resume (void )drivers/acpi/acpi_pad.c +5
-4@@ -180,17 +180,18 @@ static int power_saving_thread(void *data)if (lapic_detected_unstable && !lapic_marked_unstable) {int i;/* LAPIC could halt in idle, so notify users */ -for_each_online_cpu (i) +for_each_online_cpu (i) {clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON , - &i); + i); + } lapic_marked_unstable =1 ; }local_irq_disable (); cpu =smp_processor_id ();if (lapic_marked_unstable)clockevents_notify ( -CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);stop_critical_timings ();mwait_idle_with_hints (power_saving_mwait_eax,1 );@@ -198,7 +199,7 @@ static int power_saving_thread(void *data)start_critical_timings ();if (lapic_marked_unstable)clockevents_notify ( -CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);local_irq_enable ();if (time_before (expire_time, jiffies)) {drivers/acpi/processor_idle.c +2
-2@@ -162,7 +162,7 @@ static void __lapic_timer_propagate_broadcast(void *arg) reason = pr->power.timer_broadcast_on_state <INT_MAX ?CLOCK_EVT_NOTIFY_BROADCAST_ON :CLOCK_EVT_NOTIFY_BROADCAST_OFF ; -clockevents_notify (reason, &pr->id); +clockevents_notify (reason, pr->id); }static void lapic_timer_propagate_broadcast (struct acpi_processor *pr)@@ -183,7 +183,7 @@ static void lapic_timer_state_broadcast(struct acpi_processor *pr, reason = broadcast ?CLOCK_EVT_NOTIFY_BROADCAST_ENTER :CLOCK_EVT_NOTIFY_BROADCAST_EXIT ; -clockevents_notify (reason, &pr->id); +clockevents_notify (reason, pr->id); } }drivers/cpuidle/driver.c +1
-2@@ -143,8 +143,7 @@ static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv)*/ static void cpuidle_setup_broadcast_timer (void *arg) { -int cpu =smp_processor_id (); -clockevents_notify ((long )(arg), &cpu); +clockevents_notify ((long )arg,smp_processor_id ()); }/** drivers/idle/intel_idle.c +3
-4@@ -582,12 +582,12 @@ static int intel_idle(struct cpuidle_device *dev,leave_mm (cpu);if (!(lapic_timer_reliable_states & (1 << (cstate)))) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , cpu);mwait_idle_with_hints (eax, ecx);if (!(lapic_timer_reliable_states & (1 << (cstate)))) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , cpu);return index; }@@ -595,12 +595,11 @@ static int intel_idle(struct cpuidle_device *dev,static void __setup_broadcast_timer (void *arg) {unsigned long reason = (unsigned long )arg; -int cpu =smp_processor_id (); reason = reason ?CLOCK_EVT_NOTIFY_BROADCAST_ON :CLOCK_EVT_NOTIFY_BROADCAST_OFF ; -clockevents_notify (reason, &cpu); +clockevents_notify (reason,smp_processor_id ()); } static int cpu_hotplug_notify(struct notifier_block *n,include/linux/clockchips.h +3
-3@@ -195,9 +195,9 @@ static inline void tick_setup_hrtimer_broadcast(void) {};#endif #ifdef CONFIG_GENERIC_CLOCKEVENTS -extern int clockevents_notify (unsigned long reason,void *arg); +extern int clockevents_notify (unsigned long reason,int cpu);#else -static inline int clockevents_notify (unsigned long reason,void *arg) {return 0 ; } +static inline int clockevents_notify (unsigned long reason,int cpu) {return 0 ; }#endif #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */ @@ -205,7 +205,7 @@ static inline int clockevents_notify(unsigned long reason, void *arg) { return 0static inline void clockevents_suspend (void ) {}static inline void clockevents_resume (void ) {} -static inline int clockevents_notify (unsigned long reason,void *arg) {return 0 ; } +static inline int clockevents_notify (unsigned long reason,int cpu) {return 0 ; }static inline int tick_check_broadcast_expired (void ) {return 0 ; }static inline void tick_setup_hrtimer_broadcast (void ) {};kernel/sched/idle.c +2
-2@@ -144,7 +144,7 @@ use_default:* fail if it is not available */ if (broadcast && -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &dev->cpu)) +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , dev->cpu)) goto use_default;/* Take note of the planned idle state. */ @@ -161,7 +161,7 @@ use_default:idle_set_state (this_rq (),NULL );if (broadcast) -clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &dev->cpu); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , dev->cpu);/* * Give the governor an opportunity to reflect on the outcome kernel/time/clockevents.c +7
-8@@ -546,11 +546,11 @@ void clockevents_resume(void)* clockevents_notify - notification about relevant events * Returns 0 on success, any other value on error */ -int clockevents_notify (unsigned long reason,void *arg) +int clockevents_notify (unsigned long reason,int cpu) {struct clock_event_device *dev, *tmp;unsigned long flags; -int cpu, ret =0 ; +int ret =0 ;raw_spin_lock_irqsave (&clockevents_lock, flags);@@ -558,7 +558,7 @@ int clockevents_notify(unsigned long reason, void *arg)case CLOCK_EVT_NOTIFY_BROADCAST_ON :case CLOCK_EVT_NOTIFY_BROADCAST_OFF :case CLOCK_EVT_NOTIFY_BROADCAST_FORCE : -tick_broadcast_on_off (reason, arg); +tick_broadcast_on_off (reason, cpu);break ;case CLOCK_EVT_NOTIFY_BROADCAST_ENTER :@@ -567,7 +567,7 @@ int clockevents_notify(unsigned long reason, void *arg)break ;case CLOCK_EVT_NOTIFY_CPU_DYING : -tick_handover_do_timer (arg); +tick_handover_do_timer (cpu);break ;case CLOCK_EVT_NOTIFY_SUSPEND :@@ -580,9 +580,9 @@ int clockevents_notify(unsigned long reason, void *arg)break ;case CLOCK_EVT_NOTIFY_CPU_DEAD : -tick_shutdown_broadcast_oneshot (arg); -tick_shutdown_broadcast (arg); -tick_shutdown (arg); +tick_shutdown_broadcast_oneshot (cpu); +tick_shutdown_broadcast (cpu); +tick_shutdown (cpu);/* * Unregister the clock event devices which were * released from the users in the notify chain. @@ -592,7 +592,6 @@ int clockevents_notify(unsigned long reason, void *arg)/* * Now check whether the CPU has left unused per cpu devices */ - cpu = *((int *)arg);list_for_each_entry_safe (dev, tmp, &clockevent_devices, list) { if (cpumask_test_cpu(cpu, dev->cpumask) && cpumask_weight(dev->cpumask) == 1 &&kernel/time/hrtimer.c +2
-4@@ -1717,15 +1717,13 @@ static int hrtimer_cpu_notify(struct notifier_block *self,#ifdef CONFIG_HOTPLUG_CPU case CPU_DYING :case CPU_DYING_FROZEN : -clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DYING , &scpu); +clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DYING , scpu);break ;case CPU_DEAD :case CPU_DEAD_FROZEN : - { -clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DEAD , &scpu); +clockevents_notify (CLOCK_EVT_NOTIFY_CPU_DEAD , scpu);migrate_hrtimers (scpu);break ; - }#endif default :kernel/time/tick-broadcast.c +8
-8@@ -11,6 +11,9 @@* This code is licenced under the GPL version 2. For details see * kernel-base/COPYING. */ + +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/cpu.h> #include <linux/err.h> #include <linux/hrtimer.h> @@ -396,11 +399,10 @@ out:* Powerstate information: The system enters/leaves a state, where * affected devices might stop. */ -void tick_broadcast_on_off (unsigned long reason,int *oncpu) +void tick_broadcast_on_off (unsigned long reason,int oncpu) { -if (!cpumask_test_cpu (*oncpu, cpu_online_mask)) -printk (KERN_ERR "tick-broadcast: ignoring broadcast for " -"offline CPU #%d\n" , *oncpu); +if (!cpumask_test_cpu (oncpu, cpu_online_mask)) +pr_err ("ignoring broadcast for offline CPU #%d\n" , oncpu);else tick_do_broadcast_on_off (&reason); }@@ -419,11 +421,10 @@ void tick_set_periodic_handler(struct clock_event_device *dev, int broadcast)/* * Remove a CPU from broadcasting */ -void tick_shutdown_broadcast (unsigned int *cpup) +void tick_shutdown_broadcast (int cpu) {struct clock_event_device *bc;unsigned long flags; -unsigned int cpu = *cpup;raw_spin_lock_irqsave (&tick_broadcast_lock, flags);@@ -898,10 +899,9 @@ void tick_broadcast_switch_to_oneshot(void)/* * Remove a dead CPU from broadcasting */ -void tick_shutdown_broadcast_oneshot (unsigned int *cpup) +void tick_shutdown_broadcast_oneshot (int cpu) {unsigned long flags; -unsigned int cpu = *cpup;raw_spin_lock_irqsave (&tick_broadcast_lock, flags);kernel/time/tick-common.c +8
-8@@ -337,14 +337,14 @@ out_bc:* * Called with interrupts disabled. */ -void tick_handover_do_timer (int *cpup) +void tick_handover_do_timer (int cpu) { -if (*cpup == tick_do_timer_cpu) { -int cpu =cpumask_first (cpu_online_mask); +if (cpu != tick_do_timer_cpu) +return ; - tick_do_timer_cpu = (cpu < nr_cpu_ids) ? cpu : -TICK_DO_TIMER_NONE ; - } + cpu =cpumask_first (cpu_online_mask); + + tick_do_timer_cpu = (cpu < nr_cpu_ids) ? cpu :TICK_DO_TIMER_NONE ; }/* @@ -354,9 +354,9 @@ void tick_handover_do_timer(int *cpup)* access the hardware device itself. * We just set the mode and remove it from the lists. */ -void tick_shutdown (unsigned int *cpup) +void tick_shutdown (int cpu) { -struct tick_device *td = &per_cpu (tick_cpu_device, *cpup); +struct tick_device *td = &per_cpu (tick_cpu_device, cpu);struct clock_event_device *dev = td->evtdev; td->mode =TICKDEV_MODE_PERIODIC ;kernel/time/tick-internal.h +9
-9@@ -23,8 +23,8 @@ extern int tick_do_timer_cpu __read_mostly;extern void tick_setup_periodic (struct clock_event_device *dev,int broadcast);extern void tick_handle_periodic (struct clock_event_device *dev);extern void tick_check_new_device (struct clock_event_device *dev); -extern void tick_handover_do_timer (int *cpup); -extern void tick_shutdown (unsigned int *cpup); +extern void tick_handover_do_timer (int cpu); +extern void tick_shutdown (int cpu);extern void tick_suspend (void );extern void tick_resume (void ); extern bool tick_check_replacement(struct clock_event_device *curdev,@@ -50,7 +50,7 @@ extern void tick_resume_oneshot(void);extern void tick_broadcast_setup_oneshot (struct clock_event_device *bc);extern int tick_broadcast_oneshot_control (unsigned long reason);extern void tick_broadcast_switch_to_oneshot (void ); -extern void tick_shutdown_broadcast_oneshot (unsigned int *cpup); +extern void tick_shutdown_broadcast_oneshot (int cpu);extern int tick_resume_broadcast_oneshot (struct clock_event_device *bc);extern int tick_broadcast_oneshot_active (void );extern void tick_check_oneshot_broadcast_this_cpu (void );@@ -62,7 +62,7 @@ static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc) }static inline int tick_broadcast_oneshot_control (unsigned long reason) {return 0 ; }static inline void tick_broadcast_switch_to_oneshot (void ) { } -static inline void tick_shutdown_broadcast_oneshot (unsigned int *cpup) { } +static inline void tick_shutdown_broadcast_oneshot (int cpu) { }static inline int tick_broadcast_oneshot_active (void ) {return 0 ; }static inline void tick_check_oneshot_broadcast_this_cpu (void ) { }static inline bool tick_broadcast_oneshot_available (void ) {return true; }@@ -90,7 +90,7 @@ static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc)BUG (); }static inline int tick_broadcast_oneshot_control (unsigned long reason) {return 0 ; } -static inline void tick_shutdown_broadcast_oneshot (unsigned int *cpup) { } +static inline void tick_shutdown_broadcast_oneshot (int cpu) { }static inline int tick_resume_broadcast_oneshot (struct clock_event_device *bc) {return 0 ;@@ -113,8 +113,8 @@ static inline void tick_nohz_init(void) { }extern int tick_device_uses_broadcast (struct clock_event_device *dev,int cpu);extern void tick_install_broadcast_device (struct clock_event_device *dev);extern int tick_is_broadcast_device (struct clock_event_device *dev); -extern void tick_broadcast_on_off (unsigned long reason,int *oncpu); -extern void tick_shutdown_broadcast (unsigned int *cpup); +extern void tick_broadcast_on_off (unsigned long reason,int oncpu); +extern void tick_shutdown_broadcast (int cpu);extern void tick_suspend_broadcast (void );extern int tick_resume_broadcast (void );extern void tick_broadcast_init (void );@@ -138,8 +138,8 @@ static inline int tick_device_uses_broadcast(struct clock_event_device *dev,return 0 ; }static inline void tick_do_periodic_broadcast (struct clock_event_device *d) { } -static inline void tick_broadcast_on_off (unsigned long reason,int *oncpu) { } -static inline void tick_shutdown_broadcast (unsigned int *cpup) { } +static inline void tick_broadcast_on_off (unsigned long reason,int oncpu) { } +static inline void tick_shutdown_broadcast (int cpu) { }static inline void tick_suspend_broadcast (void ) { }static inline int tick_resume_broadcast (void ) {return 0 ; }static inline void tick_broadcast_init (void ) { }kernel/time/timekeeping.c +2
-3@@ -1245,7 +1245,7 @@ static void timekeeping_resume(void)touch_softlockup_watchdog (); -clockevents_notify (CLOCK_EVT_NOTIFY_RESUME ,NULL ); +clockevents_notify (CLOCK_EVT_NOTIFY_RESUME ,-1 );/* Resume hrtimers */ hrtimers_resume ();@@ -1299,7 +1299,7 @@ static int timekeeping_suspend(void)write_seqcount_end (&tk_core.seq);raw_spin_unlock_irqrestore (&timekeeper_lock, flags); -clockevents_notify (CLOCK_EVT_NOTIFY_SUSPEND ,NULL ); +clockevents_notify (CLOCK_EVT_NOTIFY_SUSPEND ,-1 );clocksource_suspend ();clockevents_suspend (); --To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
On Wed, Dec 10, 2014 at 03:28:53PM -0800, Joe Perches wrote:
[...]
Quoted 3 lines
arch/arm/mach-tegra/cpuidle-tegra114.c | 4 ++-- arch/arm/mach-tegra/cpuidle-tegra20.c | 8 ++++---- arch/arm/mach-tegra/cpuidle-tegra30.c | 8 ++++----
[...]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150109/5dc0810b/attachment.sig>
On Wed, Dec 10, 2014 at 03:28:53PM -0800, Joe Perches wrote:
[...]
Quoted 3 lines
arch/arm/mach-tegra/cpuidle-tegra114.c | 4 ++-- arch/arm/mach-tegra/cpuidle-tegra20.c | 8 ++++---- arch/arm/mach-tegra/cpuidle-tegra30.c | 8 ++++----
[...]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 5 lines · Joe Perches
As far as I can tell, there's no value indirecting the cpu passed to this function via a void *.
Update all the callers and called functions from within
clockevents_notify.
Aside of that there is no value for this 'notification' function at all. This should be seperate explicit calls. The notify function is a leftover from the original implementation which used actual notifier chains. I'll send out a cleanup series later today.
Thanks,
tglx
Quoted 5 lines · Joe Perches
As far as I can tell, there's no value indirecting the cpu passed to this function via a void *.
Update all the callers and called functions from within
clockevents_notify.
Aside of that there is no value for this 'notification' function at all. This should be seperate explicit calls. The notify function is a leftover from the original implementation which used actual notifier chains. I'll send out a cleanup series later today.
Thanks,
tglx