<div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--<br></div><div>Isira Seneviratne</div><div><a href="mailto:isirasen96@gmail.com" target="_blank">isirasen96@gmail.com</a><br></div></div></div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Isira Seneviratne</strong> <span dir="ltr"><<a href="mailto:isirasen96@gmail.com">isirasen96@gmail.com</a>></span><br>Date: Wed, Mar 27, 2019 at 8:25 AM<br>Subject: Re: [PATCH] taskmgr/affinity: Replace repeated code with for loops.<br>To: Alex Henrie <<a href="mailto:alexhenrie24@gmail.com">alexhenrie24@gmail.com</a>><br></div><br><br><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 27, 2019 at 8:12 AM Alex Henrie <<a href="mailto:alexhenrie24@gmail.com" target="_blank">alexhenrie24@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">+int     cpus[] = {  IDC_CPU0, IDC_CPU1, IDC_CPU2, IDC_CPU3, IDC_CPU4,<br>
IDC_CPU5, IDC_CPU6, IDC_CPU7,<br>
+                    IDC_CPU8, IDC_CPU9, IDC_CPU10, IDC_CPU11,<br>
IDC_CPU12, IDC_CPU13, IDC_CPU14, IDC_CPU15,<br>
+                    IDC_CPU16, IDC_CPU17, IDC_CPU18, IDC_CPU19,<br>
IDC_CPU20, IDC_CPU21, IDC_CPU22, IDC_CPU23,<br>
+                    IDC_CPU24, IDC_CPU25, IDC_CPU26, IDC_CPU27,<br>
IDC_CPU28, IDC_CPU29, IDC_CPU30, IDC_CPU31 };<br>
<br>
I think that you can just change IDC_CPU31 from 1051 to 1050 in<br>
resource.h and then write "IDC_CPU0 + i" instead of "cpus[i]" in<br>
affinity.c.<br>
<br>
-Alex<br></blockquote><div><br></div><div>Okay, thank you for the tip. </div></div></div>
</div></div>