@@ -31,7 +31,6 @@ struct user_irq_policy {
3131 int level ;
3232 int numa_node_set ;
3333 int numa_node ;
34- enum hp_e hintpolicy ;
3534};
3635
3736static GList * interrupts_db = NULL ;
@@ -283,7 +282,6 @@ static void add_banned_irq(int irq, GList **list)
283282
284283 new -> irq = irq ;
285284 new -> flags |= IRQ_FLAG_BANNED ;
286- new -> hint_policy = HINT_POLICY_EXACT ;
287285
288286 * list = g_list_append (* list , new );
289287 log (TO_CONSOLE , LOG_INFO , "IRQ %d was BANNED.\n" , irq );
@@ -347,7 +345,6 @@ void add_cl_banned_module(char *modname)
347345static struct irq_info * add_one_irq_to_db (const char * devpath , int irq , struct user_irq_policy * pol )
348346{
349347 int irq_class = IRQ_OTHER ;
350- int rc ;
351348 struct irq_info * new , find ;
352349 int numa_node ;
353350 char path [PATH_MAX ];
@@ -378,7 +375,6 @@ static struct irq_info *add_one_irq_to_db(const char *devpath, int irq, struct u
378375
379376 new -> irq = irq ;
380377 new -> class = IRQ_OTHER ;
381- new -> hint_policy = pol -> hintpolicy ;
382378
383379 interrupts_db = g_list_append (interrupts_db , new );
384380
@@ -402,7 +398,7 @@ static struct irq_info *add_one_irq_to_db(const char *devpath, int irq, struct u
402398 sprintf (path , "%s/numa_node" , devpath );
403399 fd = fopen (path , "r" );
404400 if (fd ) {
405- rc = fscanf (fd , "%d" , & numa_node );
401+ fscanf (fd , "%d" , & numa_node );
406402 fclose (fd );
407403 }
408404 }
@@ -416,7 +412,7 @@ static struct irq_info *add_one_irq_to_db(const char *devpath, int irq, struct u
416412 fd = fopen (path , "r" );
417413 if (!fd ) {
418414 cpus_setall (new -> cpumask );
419- goto assign_affinity_hint ;
415+ goto out ;
420416 }
421417 lcpu_mask = NULL ;
422418 ret = getline (& lcpu_mask , & blen , fd );
@@ -428,19 +424,6 @@ static struct irq_info *add_one_irq_to_db(const char *devpath, int irq, struct u
428424 }
429425 free (lcpu_mask );
430426
431- assign_affinity_hint :
432- cpus_clear (new -> affinity_hint );
433- sprintf (path , "/proc/irq/%d/affinity_hint" , irq );
434- fd = fopen (path , "r" );
435- if (!fd )
436- goto out ;
437- lcpu_mask = NULL ;
438- ret = getline (& lcpu_mask , & blen , fd );
439- fclose (fd );
440- if (ret <= 0 )
441- goto out ;
442- cpumask_parse_user (lcpu_mask , ret , new -> affinity_hint );
443- free (lcpu_mask );
444427out :
445428 log (TO_CONSOLE , LOG_INFO , "Adding IRQ %d to database\n" , irq );
446429 return new ;
@@ -499,17 +482,6 @@ static void parse_user_policy_key(char *buf, int irq, struct user_irq_policy *po
499482 }
500483 pol -> numa_node = idx ;
501484 pol -> numa_node_set = 1 ;
502- } else if (!strcasecmp ("hintpolicy" , key )) {
503- if (!strcasecmp ("exact" , value ))
504- pol -> hintpolicy = HINT_POLICY_EXACT ;
505- else if (!strcasecmp ("subset" , value ))
506- pol -> hintpolicy = HINT_POLICY_SUBSET ;
507- else if (!strcasecmp ("ignore" , value ))
508- pol -> hintpolicy = HINT_POLICY_IGNORE ;
509- else {
510- key_set = 0 ;
511- log (TO_ALL , LOG_WARNING , "Unknown value for hitpolicy: %s\n" , value );
512- }
513485 } else {
514486 key_set = 0 ;
515487 log (TO_ALL , LOG_WARNING , "Unknown key returned, ignoring: %s\n" , key );
@@ -534,7 +506,6 @@ static void get_irq_user_policy(char *path, int irq, struct user_irq_policy *pol
534506 char * brc ;
535507
536508 memset (pol , -1 , sizeof (struct user_irq_policy ));
537- pol -> hintpolicy = global_hint_policy ;
538509
539510 /* Return defaults if no script was given */
540511 if (!polscript )
@@ -575,7 +546,7 @@ static int check_for_module_ban(char *name)
575546 return 0 ;
576547}
577548
578- static int check_for_irq_ban (char * path , int irq , GList * proc_interrupts )
549+ static int check_for_irq_ban (char * path __attribute__(( unused )) , int irq , GList * proc_interrupts )
579550{
580551 struct irq_info find , * res ;
581552 GList * entry ;
0 commit comments