aboutsummaryrefslogtreecommitdiff
path: root/procps/mpstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/mpstat.c')
-rw-r--r--procps/mpstat.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/procps/mpstat.c b/procps/mpstat.c
index aa5a5c73f..c628d6215 100644
--- a/procps/mpstat.c
+++ b/procps/mpstat.c
@@ -775,12 +775,6 @@ static void main_loop(void)
775 775
776/* Initialization */ 776/* Initialization */
777 777
778/* Get number of clock ticks per sec */
779static ALWAYS_INLINE unsigned get_hz(void)
780{
781 return sysconf(_SC_CLK_TCK);
782}
783
784static void alloc_struct(int cpus) 778static void alloc_struct(int cpus)
785{ 779{
786 int i; 780 int i;
@@ -873,7 +867,7 @@ int mpstat_main(int UNUSED_PARAM argc, char **argv)
873 G.cpu_nr = get_cpu_count(); 867 G.cpu_nr = get_cpu_count();
874 868
875 /* Get number of clock ticks per sec */ 869 /* Get number of clock ticks per sec */
876 G.hz = get_hz(); 870 G.hz = bb_clk_tck();
877 871
878 /* Calculate number of interrupts per processor */ 872 /* Calculate number of interrupts per processor */
879 G.irqcpu_nr = get_irqcpu_nr(PROCFS_INTERRUPTS, NR_IRQS) + NR_IRQCPU_PREALLOC; 873 G.irqcpu_nr = get_irqcpu_nr(PROCFS_INTERRUPTS, NR_IRQS) + NR_IRQCPU_PREALLOC;