File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2270,7 +2270,7 @@ shutdown_control()
22702270 2004/12/13 */
22712271
22722272void
2273- bind_to_specific_processor (int processor_affinity , int use_cpu_map )
2273+ bind_to_specific_processor (int use_cpu_affinity , int use_cpu_map )
22742274{
22752275
22762276 int mapped_affinity ;
@@ -2281,10 +2281,10 @@ bind_to_specific_processor(int processor_affinity, int use_cpu_map)
22812281 a suitable CPU id even when the space is not contiguous and
22822282 starting from zero */
22832283 if (use_cpu_map ) {
2284- mapped_affinity = lib_cpu_map [processor_affinity ];
2284+ mapped_affinity = lib_cpu_map [use_cpu_affinity ];
22852285 }
22862286 else {
2287- mapped_affinity = processor_affinity ;
2287+ mapped_affinity = use_cpu_affinity ;
22882288 }
22892289
22902290#ifdef HAVE_MPCTL
@@ -2377,7 +2377,7 @@ bind_to_specific_processor(int processor_affinity, int use_cpu_map)
23772377 if ((mapped_affinity < 0 ) ||
23782378 (mapped_affinity > MAXIMUM_PROCESSORS )) {
23792379 fprintf (where ,
2380- "Invalid processor_affinity specified: %d\n" , mapped_affinity ); fflush (where );
2380+ "Invalid use_cpu_affinity specified: %d\n" , mapped_affinity ); fflush (where );
23812381 return ;
23822382 }
23832383
Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ extern double calc_thruput_omni(double units_received);
618618extern double calc_thruput_interval_omni (double units_received ,double elapsed );
619619extern float calibrate_local_cpu (float local_cpu_rate );
620620extern float calibrate_remote_cpu ();
621- extern void bind_to_specific_processor (int processor_affinity ,int use_cpu_map );
621+ extern void bind_to_specific_processor (int use_cpu_affinity ,int use_cpu_map );
622622extern int set_nonblock (SOCKET sock );
623623extern char * find_egress_interface (struct sockaddr * source , struct sockaddr * dest );
624624extern char * find_interface_slot (char * interface_name );
You can’t perform that action at this time.
0 commit comments