lkml.org 
[lkml]   [2021]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] tick/sched: Export symbols used by cpuidle governors
    Date
    Export symbols that are used by cpuidle menu, ladder and teo governors
    in preparation to allow cpuidle governors to be compiled as modules.

    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@kernel.org>
    Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
    ---
    kernel/time/tick-sched.c | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
    index 6bffe5af..7cc6619 100644
    --- a/kernel/time/tick-sched.c
    +++ b/kernel/time/tick-sched.c
    @@ -573,6 +573,8 @@ void __init tick_nohz_init(void)
    * NO HZ enabled ?
    */
    bool tick_nohz_enabled __read_mostly = true;
    +EXPORT_SYMBOL(tick_nohz_enabled);
    +
    unsigned long tick_nohz_active __read_mostly;
    /*
    * Enable / Disable tickless mode
    @@ -590,6 +592,7 @@ bool tick_nohz_tick_stopped(void)

    return ts->tick_stopped;
    }
    +EXPORT_SYMBOL(tick_nohz_tick_stopped);

    bool tick_nohz_tick_stopped_cpu(int cpu)
    {
    @@ -1147,6 +1150,7 @@ bool tick_nohz_idle_got_tick(void)
    }
    return false;
    }
    +EXPORT_SYMBOL(tick_nohz_idle_got_tick);

    /**
    * tick_nohz_get_next_hrtimer - return the next expiration time for the hrtimer
    @@ -1202,6 +1206,7 @@ ktime_t tick_nohz_get_sleep_length(ktime_t *delta_next)

    return ktime_sub(next_event, now);
    }
    +EXPORT_SYMBOL(tick_nohz_get_sleep_length);

    /**
    * tick_nohz_get_idle_calls_cpu - return the current idle calls counter value
    --
    2.7.4
    \
     
     \ /
      Last update: 2021-11-25 09:57    [W:4.092 / U:1.252 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site