proc.c (f43dc23d5ea91fca257be02138a255f02d98e806) proc.c (506ed6b53e00ba303ad778122f08e1fca7cf5efb)
1#include <linux/smp.h>
2#include <linux/timex.h>
3#include <linux/string.h>
4#include <linux/seq_file.h>
5#include <linux/cpufreq.h>
6
7/*
8 * Get CPU information for use by the procfs.

--- 71 unchanged lines hidden (view full) ---

80 c->x86,
81 c->x86_model,
82 c->x86_model_id[0] ? c->x86_model_id : "unknown");
83
84 if (c->x86_mask || c->cpuid_level >= 0)
85 seq_printf(m, "stepping\t: %d\n", c->x86_mask);
86 else
87 seq_printf(m, "stepping\t: unknown\n");
1#include <linux/smp.h>
2#include <linux/timex.h>
3#include <linux/string.h>
4#include <linux/seq_file.h>
5#include <linux/cpufreq.h>
6
7/*
8 * Get CPU information for use by the procfs.

--- 71 unchanged lines hidden (view full) ---

80 c->x86,
81 c->x86_model,
82 c->x86_model_id[0] ? c->x86_model_id : "unknown");
83
84 if (c->x86_mask || c->cpuid_level >= 0)
85 seq_printf(m, "stepping\t: %d\n", c->x86_mask);
86 else
87 seq_printf(m, "stepping\t: unknown\n");
88 if (c->microcode)
89 seq_printf(m, "microcode\t: %u\n", c->microcode);
88
89 if (cpu_has(c, X86_FEATURE_TSC)) {
90 unsigned int freq = cpufreq_quick_get(cpu);
91
92 if (!freq)
93 freq = cpu_khz;
94 seq_printf(m, "cpu MHz\t\t: %u.%03u\n",
95 freq / 1000, (freq % 1000));

--- 72 unchanged lines hidden ---
90
91 if (cpu_has(c, X86_FEATURE_TSC)) {
92 unsigned int freq = cpufreq_quick_get(cpu);
93
94 if (!freq)
95 freq = cpu_khz;
96 seq_printf(m, "cpu MHz\t\t: %u.%03u\n",
97 freq / 1000, (freq % 1000));

--- 72 unchanged lines hidden ---