From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger@xenproject.org>,
"Teddy Astie" <teddy.astie@vates.tech>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH 3/5] x86/nmi: Misc style fixes
Date: Mon, 17 Aug 2026 17:19:34 +0100 [thread overview]
Message-ID: <9d7ecb39-e2a9-4433-a051-29efc5c682f3@citrix.com> (raw)
In-Reply-To: <3e414c79-26cd-4fe4-a48e-73d80b02b4e2@suse.com>
On 05/08/2026 2:52 pm, Jan Beulich wrote:
> On 05.08.2026 14:45, Andrew Cooper wrote:
>> * Drop trailing whitespace
>> * Sort includes, dropping asm/mc146818rtc.h and asm/div64.h as unused
>> * Brace position, and types
>>
>> No functional change.
>>
>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> Acked-by: Jan Beulich <jbeulich@suse.com>
Thanks.
> albeit I would have suggested ...
>
>> @@ -310,15 +308,18 @@ static void setup_p4_watchdog(void)
>> if ( boot_cpu_data.x86_num_siblings == 2 )
>> nmi_p4_cccr_val |= P4_CCCR_OVF_PMI1;
>>
>> - if (!(misc_enable & MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL))
>> + if ( !(misc_enable & MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL) )
>> clear_msr_range(0x3F1, 2);
>> /* MSR 0x3F0 seems to have a default value of 0xFC00, but current
>> docs doesn't fully define it, so leave it alone for now. */
>> - if (boot_cpu_data.model >= 0x3) {
>> + if ( boot_cpu_data.model >= 0x3 )
>> + {
>> /* MSR_P4_IQ_ESCR0/1 (0x3ba/0x3bb) removed */
>> clear_msr_range(0x3A0, 26);
>> clear_msr_range(0x3BC, 3);
>> - } else {
>> + }
>> + else
>> + {
>> clear_msr_range(0x3A0, 31);
>> }
> ... to instead drop the figure braces here.
There's an easier fix. Model 3 was the first 64bit-capable P4.
I'll do a separate patch to take out the entire else clause.
~Andrew
next prev parent reply other threads:[~2026-08-17 16:20 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 12:45 [PATCH 0/5] x86/nmi: Watchdog fixes/improvement Part 1 Andrew Cooper
2026-08-05 12:45 ` [PATCH 1/5] x86/nmi: Drop {reserve,release}_lapic_nmi() Andrew Cooper
2026-08-05 13:48 ` Jan Beulich
2026-08-05 12:45 ` [PATCH 2/5] x86/nmi: Drop K7_NMI_EVENT Andrew Cooper
2026-08-05 13:49 ` Jan Beulich
2026-08-17 16:24 ` [PATCH 2.5/5] x86/nmi: Remove logic for pre-64bit Pentium 4 CPUs Andrew Cooper
2026-08-18 6:32 ` Jan Beulich
2026-08-05 12:45 ` [PATCH 3/5] x86/nmi: Misc style fixes Andrew Cooper
2026-08-05 13:52 ` Jan Beulich
2026-08-17 16:19 ` Andrew Cooper [this message]
2026-08-05 12:45 ` [PATCH 4/5] x86/nmi: Check MSR_MISC_ENABLE for all Intel platforms Andrew Cooper
2026-08-05 14:02 ` Jan Beulich
2026-08-05 12:45 ` [PATCH 5/5] x86/nmi: Don't configure EvtSel repeatedly Andrew Cooper
2026-08-05 14:20 ` Jan Beulich
2026-08-05 15:37 ` Andrew Cooper
2026-08-06 6:57 ` Jan Beulich
2026-08-06 9:40 ` Andrew Cooper
2026-08-17 17:23 ` [PATCH 6/5] x86/nmi: Support watchdogs on Intel Fam18/19 CPUs Andrew Cooper
2026-08-18 7:31 ` Jan Beulich
2026-08-05 13:42 ` [PATCH 0/5] x86/nmi: Watchdog fixes/improvement Part 1 Jan Beulich
2026-08-05 17:56 ` Andrew Cooper
2026-08-06 6:44 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9d7ecb39-e2a9-4433-a051-29efc5c682f3@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger@xenproject.org \
--cc=teddy.astie@vates.tech \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.