login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
9
Re: [PATCH 1/2] i386: mce cleanup part1: functional change
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
<Valdis.Kletnieks@...>
To: Oleg Verych <olecom@...>
Cc: Joerg Roedel <joerg.roedel@...>, Andi Kleen <andi@...>, Christoph Egger <Christoph.Egger@...>, <linux-kernel@...>
Subject:
Re: [PATCH 1/2] i386: mce cleanup part1: functional change
Date: Tuesday, October 9, 2007 - 4:46 pm
On Tue, 09 Oct 2007 18:32:30 +0200, Oleg Verych said:
quoted text
> On Tue, Oct 09, 2007 at 06:06:05PM +0200, Joerg Roedel wrote: > > > cpu_has() returns int, > > > but would it be better to have something like > > > > > > if (!mce_disabled && > > > !(c->x86_capability & (X86_FEATURE_MCA | X86_FEATURE_MCE)) { > > > printk(KERN_INFO "CPU%i: No machine check support available\n", > > > smp_processor_id()); > > > > This looks complicated and is harder to read. Its exactly the purpose of the > > cpu_has() macro to avoid such constructs. > > It is done via test_bit(), which is designed for IO access with all that > `const volatile' stuff, 2 x unnecessary, can't be optimized here (IMHO).
If this code is getting called often enough that optimization matters, you got *bigger* issues to worry about than optimization. Looks like it should only happen once at boot time.
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/2] i386: MCE updates
, Joerg Roedel
, (Tue Oct 9, 8:49 am)
[PATCH 2/2] i386: mce cleanup part2: conding style cleanups
, Joerg Roedel
, (Tue Oct 9, 8:49 am)
[PATCH 1/2] i386: mce cleanup part1: functional change
, Joerg Roedel
, (Tue Oct 9, 8:49 am)
Re: [PATCH 1/2] i386: mce cleanup part1: functional change
, Oleg Verych
, (Tue Oct 9, 12:04 pm)
Re: [PATCH 1/2] i386: mce cleanup part1: functional change
, Joerg Roedel
, (Tue Oct 9, 12:06 pm)
coding for optimizations (Re: [PATCH 1/2] i386: mce cleanup ...
, Oleg Verych
, (Tue Oct 9, 1:33 pm)
Re: coding for optimizations (Re: [PATCH 1/2] i386: mce clea...
, Joerg Roedel
, (Tue Oct 9, 2:30 pm)
Re: coding for optimizations (Re: [PATCH 1/2] i386: mce clea...
, Adrian Bunk
, (Wed Oct 10, 7:14 pm)
Re: coding for optimizations (Re: [PATCH 1/2] i386: mce clea...
, Oleg Verych
, (Thu Oct 11, 11:26 am)
Re: coding for optimizations (Re: [PATCH 1/2] i386: mce clea...
, Adrian Bunk
, (Thu Oct 11, 11:21 am)
Re: coding for optimizations (Re: [PATCH 1/2] i386: mce clea...
, Oleg Verych
, (Thu Oct 11, 12:13 pm)
Re: [PATCH 1/2] i386: mce cleanup part1: functional change
, Oleg Verych
, (Tue Oct 9, 12:32 pm)
Re: [PATCH 1/2] i386: mce cleanup part1: functional change
,
, (Tue Oct 9, 4:46 pm)
Re: [PATCH 1/2] i386: mce cleanup part1: functional change
, Oleg Verych
, (Tue Oct 9, 9:58 pm)
Re: [PATCH 1/2] i386: mce cleanup part1: functional change
, Joerg Roedel
, (Tue Oct 9, 12:54 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
clameter
[31/36] Large Blocksize: Core piece
David Woodhouse
Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor...
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
5 users
and
824 guests
online.
Online users
yamasakinu
catfeeder
louisesug
cordic
silkinmanageme
Syndicate