Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932158AbWAJNBt (ORCPT ); Tue, 10 Jan 2006 08:01:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932196AbWAJNBs (ORCPT ); Tue, 10 Jan 2006 08:01:48 -0500 Received: from mail.gmx.de ([213.165.64.21]:22154 "HELO mail.gmx.net") by vger.kernel.org with SMTP id S932158AbWAJNBr (ORCPT ); Tue, 10 Jan 2006 08:01:47 -0500 X-Authenticated: #14349625 Message-Id: <5.2.1.1.2.20060110135846.00bfd0a8@pop.gmx.net> X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Tue, 10 Jan 2006 14:01:36 +0100 To: Paolo Ornati From: Mike Galbraith Subject: Re: [SCHED] wrong priority calc - SIMPLE test case Cc: Linux Kernel Mailing List , Con Kolivas , Ingo Molnar , Nick Piggin , Peter Williams In-Reply-To: <20060110135617.020f82fb@localhost> References: <5.2.1.1.2.20060110125942.00bef510@pop.gmx.net> <20060109210035.3f6adafc@localhost> <5.2.1.1.2.20060109162113.00ba9fd0@pop.gmx.net> <5.2.1.1.2.20060102092903.00bde090@pop.gmx.net> <20060101123902.27a10798@localhost> <5.2.1.1.2.20051231162352.00bda610@pop.gmx.net> <5.2.1.1.2.20051231090255.00bede00@pop.gmx.net> <200512281027.00252.kernel@kolivas.org> <20051227190918.65c2abac@localhost> <20051227224846.6edcff88@localhost> <200512281027.00252.kernel@kolivas.org> <5.2.1.1.2.20051231090255.00bede00@pop.gmx.net> <5.2.1.1.2.20051231162352.00bda610@pop.gmx.net> <5.2.1.1.2.20060109162113.00ba9fd0@pop.gmx.net> <5.2.1.1.2.20060110125942.00bef510@pop.gmx.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_110765062==_" X-Antivirus: avast! (VPS 0601-0, 01/02/2006), Outbound message X-Antivirus-Status: Clean X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6917 Lines: 106 --=====================_110765062==_ Content-Type: text/plain; charset="us-ascii"; format=flowed At 01:56 PM 1/10/2006 +0100, Paolo Ornati wrote: >On Tue, 10 Jan 2006 13:07:33 +0100 >Mike Galbraith wrote: > > > Can you please try this version? It tries harder to correct any > >It seems that you have forgotten the to attach the patch... Drat. At least I'm not the first to ever do so :) (double checks) It's now attached. -Mike --=====================_110765062==_ Content-Type: application/octet-stream; name="sched_throttle2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="sched_throttle2" LS0tIGxpbnV4LTIuNi4xNS9pbmNsdWRlL2xpbnV4L3NjaGVkLmgub3JnCVR1ZSBKYW4gIDMgMDk6 MjY6NTAgMjAwNgorKysgbGludXgtMi42LjE1L2luY2x1ZGUvbGludXgvc2NoZWQuaAlTYXQgSmFu ICA3IDE0OjQ1OjM3IDIwMDYKQEAgLTcwMSw4ICs3MDEsOCBAQAogCiAJdW5zaWduZWQgc2hvcnQg aW9wcmlvOwogCi0JdW5zaWduZWQgbG9uZyBzbGVlcF9hdmc7Ci0JdW5zaWduZWQgbG9uZyBsb25n IHRpbWVzdGFtcCwgbGFzdF9yYW47CisJdW5zaWduZWQgbG9uZyBzbGVlcF9hdmcsIHNsaWNlX2F2 ZzsKKwl1bnNpZ25lZCBsb25nIGxvbmcgdGltZXN0YW1wLCBsYXN0X3JhbiwgbGFzdF9zbGljZTsK IAl1bnNpZ25lZCBsb25nIGxvbmcgc2NoZWRfdGltZTsgLyogc2NoZWRfY2xvY2sgdGltZSBzcGVu dCBydW5uaW5nICovCiAJaW50IGFjdGl2YXRlZDsKIAotLS0gbGludXgtMi42LjE1L2tlcm5lbC9z Y2hlZC5jLm9yZwlTYXQgSmFuICA3IDE2OjIyOjEzIDIwMDYKKysrIGxpbnV4LTIuNi4xNS9rZXJu ZWwvc2NoZWQuYwlUdWUgSmFuIDEwIDEzOjU5OjQ0IDIwMDYKQEAgLTEyNyw2ICsxMjcsMjAgQEAK IAkoTlNfVE9f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2tfaXJxKCZycS0+bG9jayk7CiAKQEAgLTMwMTAs NyArMzA0OCw3IEBACiAJCQkJdW5saWtlbHkoc2lnbmFsX3BlbmRpbmcocHJldikpKSkKIAkJCXBy ZXYtPnN0YXRlID0gVEFTS19SVU5OSU5HOwogCQllbHNlIHsKLQkJCWlmIChwcmV2LT5zdGF0ZSA9 PSBUQVNLX1VOSU5URVJSVVBUSUJMRSkKKwkJCWlmIChwcmV2LT5zdGF0ZSAmIFRBU0tfVU5JTlRF UlJVUFRJQkxFKQogCQkJCXJxLT5ucl91bmludGVycnVwdGlibGUrKzsKIAkJCWRlYWN0aXZhdGVf dGFzayhwcmV2LCBycSk7CiAJCX0KQEAgLTMwOTUsNiArMzEzMywxMiBAQAogCXByZXYtPnNsZWVw X2F2ZyAtPSBydW5fdGltZTsKIAlpZiAoKGxvbmcpcHJldi0+c2xlZXBfYXZnIDw9IDApCiAJCXBy ZXYtPnNsZWVwX2F2ZyA9IDA7CisJLyoKKwkgKiBFbmFibGUgZGV0ZWN0aW9uIG9mIHRoZSBiZWdp bm5pbmcgb2YgYSBzbGljZSBhdCB0aWNrIHRpbWUuCisJICovCisJaWYgKCFydF90YXNrKG5leHQp ICYmICEobmV4dC0+dGltZV9zbGljZSAlIERFRl9USU1FU0xJQ0UpKQorCQluZXh0LT5sYXN0X3Ns aWNlID0gbm93OworCiAJcHJldi0+dGltZXN0YW1wID0gcHJldi0+bGFzdF9yYW4gPSBub3c7CiAK IAlzY2hlZF9pbmZvX3N3aXRjaChwcmV2LCBuZXh0KTsK --=====================_110765062==_-- - 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/