x86/mce: Avoid showing repetitive message from intel_init_thermal()
authorRakib Mullick <rakib.mullick@gmail.com>
Thu, 18 Sep 2014 19:22:15 +0000 (01:22 +0600)
committerIngo Molnar <mingo@kernel.org>
Fri, 19 Sep 2014 10:56:05 +0000 (12:56 +0200)
commitd286c3af48e3ad187fc52a0060c71b0844f234ff
tree3818305e14a335dea3122a8d57720c3081bfa8cf
parentd9773ceabfaf3f27b8a36fac035b74ee599df900
x86/mce: Avoid showing repetitive message from intel_init_thermal()

intel_init_thermal() is called from a) at the time of system initializing
and b) at the time of system resume to initialize thermal
monitoring.

In case when thermal monitoring is handled by SMI, we get to know it via
printk(). Currently it gives the message at both cases, but its okay if
we get it only once and no need to get the same message at every time
system resumes.

So, limit showing this message only at system boot time by avoid showing
at system resume and reduce abusing kernel log buffer.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Tony Luck <tony.luck@intel.com>
Link: http://lkml.kernel.org/r/1411068135.5121.10.camel@localhost.localdomain
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/mcheck/therm_throt.c