Skip to content

Commit bcb868b

Browse files
authored
Merge pull request HewlettPackard#23 from grundlerchromium/rename_process_affinity
netlib: processor_affinity conflicts in solaris
2 parents 859128b + 2315a69 commit bcb868b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/netlib.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ shutdown_control()
22702270
2004/12/13 */
22712271

22722272
void
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

src/netlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ extern double calc_thruput_omni(double units_received);
618618
extern double calc_thruput_interval_omni(double units_received,double elapsed);
619619
extern float calibrate_local_cpu(float local_cpu_rate);
620620
extern 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);
622622
extern int set_nonblock (SOCKET sock);
623623
extern char *find_egress_interface(struct sockaddr *source, struct sockaddr *dest);
624624
extern char *find_interface_slot(char *interface_name);

0 commit comments

Comments
 (0)