Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261877AbTKZOOC (ORCPT ); Wed, 26 Nov 2003 09:14:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262569AbTKZOOB (ORCPT ); Wed, 26 Nov 2003 09:14:01 -0500 Received: from siaar1aa.compuserve.com ([149.174.40.9]:57502 "EHLO siaar1aa.compuserve.com") by vger.kernel.org with ESMTP id S261877AbTKZONz (ORCPT ); Wed, 26 Nov 2003 09:13:55 -0500 Message-ID: <3FC4B5C8.6020405@aol.com> Date: Wed, 26 Nov 2003 15:16:40 +0100 From: Kai Bankett User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: [PATCH] irq_balance does not make sense with HT but single physical CPU Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms070304070205020202040402" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6720 Lines: 131 This is a cryptographically signed message in MIME format. --------------ms070304070205020202040402 Content-Type: multipart/mixed; boundary="------------000508070201080709030703" This is a multi-part message in MIME format. --------------000508070201080709030703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi @all, this patch should disable irq_balance threat in case of only one installed physical cpu thats running in HyperThreading-mode (so reported as 2 cpus). I think it should make no sense to run irq_blanance in that special case - please correct me if i?m wrong. Thanks, Kai --------------000508070201080709030703 Content-Type: text/plain; name="2.6.0-test10-io_apic.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="2.6.0-test10-io_apic.diff" diff -u -r -N linux-2.6.0-test10/arch/i386/kernel/io_apic.c linux-2.6.0-test10-kai/arch/i386/kernel/io_apic.c --- linux-2.6.0-test10/arch/i386/kernel/io_apic.c 2003-11-24 02:31:38.000000000 +0100 +++ linux-2.6.0-test10-kai/arch/i386/kernel/io_apic.c 2003-11-26 14:30:29.000000000 +0100 @@ -627,6 +627,16 @@ irqbalance_disabled = 1; return 0; } + +#ifdef CONFIG_X86_HT + /* On Hyper-Threading CPUs - if only one physical installed + balance does not make sense */ + if (cpu_has_ht && smp_num_siblings == 2 && num_online_cpus() == 2) { + irqbalance_disabled = 1; + return 0; + } +#endif + /* * Enable physical balance only if more than 1 physical processor * is present --------------000508070201080709030703-- --------------ms070304070205020202040402 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJQDCC Av4wggJnoAMCAQICAwngETANBgkqhkiG9w0BAQQFADCBkjELMAkGA1UEBhMCWkExFTATBgNV BAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUx HTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVl bWFpbCBSU0EgMjAwMC44LjMwMB4XDTAzMDUwNTE0NTAyM1oXDTA0MDUwNDE0NTAyM1owQjEf MB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEfMB0GCSqGSIb3DQEJARYQa2Jhbmtl dHRAYW9sLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALMFsOrR2jINM/04 7ut/y2rXUEFIPEfP3WezS5wyz1WXi3LVta3oGZ5VYGstJyCX9BJJob5GhP0MLTyTdthpX+Kf gEbfuew52WzXY2xgOwoAiEigTyRBIOlTG2xx2y9oT4o3WVnw58MbMTNDWizCiR0TlAZw9V0p nDqdGOHz6sFCMk3CSsTJOAhvtUjdeFT5D0R8TD5VnLYg4Skpj1qce1RntAgaAzN+8OKB6vf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Ex9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44LjMwAgMJ4BEwga0GCyqGSIb3DQEJEAIL MYGdoIGaMIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYDVQQH EwlDYXBlIFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2VydGlmaWNhdGUgU2Vy dmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAwLjguMzACAwngETAN BgkqhkiG9w0BAQEFAASCAQBEOZXFICF74q1rj2vHaPbvvUBHsJm43AteHWMy7oSqWNicmmQO SuDYOmPq0f/ybh7S453jpn0r0Fp3d8VxaYigGErlfo9XvABlpIrTqrzMzcsge9h+67GCuprh eNUIb+QmghD1HXdg7yceo6sWdCKIDhgjuLquqNwXHNXTAwxFO6xg54EX8j6QuPxzTstsmnHo /akKl4CcAHOwTrursQAG0E5qo8uaQzHw82ZFnfvTEDS8usf4yhvjLVKQi1qgIwoWHeikHPKw 2sAl/ABRHzN4NIHEnDYTc8sWB2TX5+O0m7/UvsNROfpiH0/dHWcP8afAZj431eLMLPvQs8w7 U4DxAAAAAAAA --------------ms070304070205020202040402-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/