diff options
author | cpw@sgi.com <cpw@sgi.com> | 2011-06-21 08:21:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-06-21 08:50:31 -0400 |
commit | b18fb2c04ac46885f5b0226cd945e763eae51567 (patch) | |
tree | 059bffacc226d549b5cc50b07b7170030b0104c7 /arch | |
parent | 00b30cf04a775b5292ab704f782394e36e25617d (diff) |
x86, UV: Inline header file functions
Make all the functions in uv_bau.h inline so that it can
be included in the fake prom (used in simulations).
If not inlined the unused functions will generate compiler warnings.
Signed-off-by: Cliff Wickman <cpw@sgi.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Link: http://lkml.kernel.org/r/20110621122242.230529678@sgi.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/uv/uv_bau.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/include/asm/uv/uv_bau.h b/arch/x86/include/asm/uv/uv_bau.h index a291c40efd43..605e613b510c 100644 --- a/arch/x86/include/asm/uv/uv_bau.h +++ b/arch/x86/include/asm/uv/uv_bau.h | |||
@@ -526,72 +526,72 @@ struct bau_control { | |||
526 | struct hub_and_pnode *thp; | 526 | struct hub_and_pnode *thp; |
527 | }; | 527 | }; |
528 | 528 | ||
529 | static unsigned long read_mmr_uv2_status(void) | 529 | static inline unsigned long read_mmr_uv2_status(void) |
530 | { | 530 | { |
531 | return read_lmmr(UV2H_LB_BAU_SB_ACTIVATION_STATUS_2); | 531 | return read_lmmr(UV2H_LB_BAU_SB_ACTIVATION_STATUS_2); |
532 | } | 532 | } |
533 | 533 | ||
534 | static void write_mmr_data_broadcast(int pnode, unsigned long mmr_image) | 534 | static inline void write_mmr_data_broadcast(int pnode, unsigned long mmr_image) |
535 | { | 535 | { |
536 | write_gmmr(pnode, UVH_BAU_DATA_BROADCAST, mmr_image); | 536 | write_gmmr(pnode, UVH_BAU_DATA_BROADCAST, mmr_image); |
537 | } | 537 | } |
538 | 538 | ||
539 | static void write_mmr_descriptor_base(int pnode, unsigned long mmr_image) | 539 | static inline void write_mmr_descriptor_base(int pnode, unsigned long mmr_image) |
540 | { | 540 | { |
541 | write_gmmr(pnode, UVH_LB_BAU_SB_DESCRIPTOR_BASE, mmr_image); | 541 | write_gmmr(pnode, UVH_LB_BAU_SB_DESCRIPTOR_BASE, mmr_image); |
542 | } | 542 | } |
543 | 543 | ||
544 | static void write_mmr_activation(unsigned long index) | 544 | static inline void write_mmr_activation(unsigned long index) |
545 | { | 545 | { |
546 | write_lmmr(UVH_LB_BAU_SB_ACTIVATION_CONTROL, index); | 546 | write_lmmr(UVH_LB_BAU_SB_ACTIVATION_CONTROL, index); |
547 | } | 547 | } |
548 | 548 | ||
549 | static void write_gmmr_activation(int pnode, unsigned long mmr_image) | 549 | static inline void write_gmmr_activation(int pnode, unsigned long mmr_image) |
550 | { | 550 | { |
551 | write_gmmr(pnode, UVH_LB_BAU_SB_ACTIVATION_CONTROL, mmr_image); | 551 | write_gmmr(pnode, UVH_LB_BAU_SB_ACTIVATION_CONTROL, mmr_image); |
552 | } | 552 | } |
553 | 553 | ||
554 | static void write_mmr_payload_first(int pnode, unsigned long mmr_image) | 554 | static inline void write_mmr_payload_first(int pnode, unsigned long mmr_image) |
555 | { | 555 | { |
556 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_FIRST, mmr_image); | 556 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_FIRST, mmr_image); |
557 | } | 557 | } |
558 | 558 | ||
559 | static void write_mmr_payload_tail(int pnode, unsigned long mmr_image) | 559 | static inline void write_mmr_payload_tail(int pnode, unsigned long mmr_image) |
560 | { | 560 | { |
561 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_TAIL, mmr_image); | 561 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_TAIL, mmr_image); |
562 | } | 562 | } |
563 | 563 | ||
564 | static void write_mmr_payload_last(int pnode, unsigned long mmr_image) | 564 | static inline void write_mmr_payload_last(int pnode, unsigned long mmr_image) |
565 | { | 565 | { |
566 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_LAST, mmr_image); | 566 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_LAST, mmr_image); |
567 | } | 567 | } |
568 | 568 | ||
569 | static void write_mmr_misc_control(int pnode, unsigned long mmr_image) | 569 | static inline void write_mmr_misc_control(int pnode, unsigned long mmr_image) |
570 | { | 570 | { |
571 | write_gmmr(pnode, UVH_LB_BAU_MISC_CONTROL, mmr_image); | 571 | write_gmmr(pnode, UVH_LB_BAU_MISC_CONTROL, mmr_image); |
572 | } | 572 | } |
573 | 573 | ||
574 | static unsigned long read_mmr_misc_control(int pnode) | 574 | static inline unsigned long read_mmr_misc_control(int pnode) |
575 | { | 575 | { |
576 | return read_gmmr(pnode, UVH_LB_BAU_MISC_CONTROL); | 576 | return read_gmmr(pnode, UVH_LB_BAU_MISC_CONTROL); |
577 | } | 577 | } |
578 | 578 | ||
579 | static void write_mmr_sw_ack(unsigned long mr) | 579 | static inline void write_mmr_sw_ack(unsigned long mr) |
580 | { | 580 | { |
581 | uv_write_local_mmr(UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE_ALIAS, mr); | 581 | uv_write_local_mmr(UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE_ALIAS, mr); |
582 | } | 582 | } |
583 | 583 | ||
584 | static unsigned long read_mmr_sw_ack(void) | 584 | static inline unsigned long read_mmr_sw_ack(void) |
585 | { | 585 | { |
586 | return read_lmmr(UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE); | 586 | return read_lmmr(UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE); |
587 | } | 587 | } |
588 | 588 | ||
589 | static unsigned long read_gmmr_sw_ack(int pnode) | 589 | static inline unsigned long read_gmmr_sw_ack(int pnode) |
590 | { | 590 | { |
591 | return read_gmmr(pnode, UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE); | 591 | return read_gmmr(pnode, UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE); |
592 | } | 592 | } |
593 | 593 | ||
594 | static void write_mmr_data_config(int pnode, unsigned long mr) | 594 | static inline void write_mmr_data_config(int pnode, unsigned long mr) |
595 | { | 595 | { |
596 | uv_write_global_mmr64(pnode, UVH_BAU_DATA_CONFIG, mr); | 596 | uv_write_global_mmr64(pnode, UVH_BAU_DATA_CONFIG, mr); |
597 | } | 597 | } |