aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-generic.c
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2011-04-06 14:40:31 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-07 14:40:14 -0400
commitbd39a274fb7b43374c797bafdb7f506598f36f77 (patch)
treed2c8bfc8312621d07bb0b4205468d125a296689c /drivers/rtc/rtc-generic.c
parentbf3ca7f752d8f5009c9a83db56035566f3e313de (diff)
ath: add missing regdomain pair 0x5c mapping
Joe Culler reported a problem with his AR9170 device: > ath: EEPROM regdomain: 0x5c > ath: EEPROM indicates we should expect a direct regpair map > ath: invalid regulatory domain/country code 0x5c > ath: Invalid EEPROM contents It turned out that the regdomain 'APL7_FCCA' was not mapped yet. According to Luis R. Rodriguez [Atheros' engineer] APL7 maps to FCC_CTL and FCCA maps to FCC_CTL as well, so the attached patch should be correct. Cc: <stable@kernel.org> Reported-by: Joe Culler <joe.culler@gmail.com> Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/rtc/rtc-generic.c')
0 files changed, 0 insertions, 0 deletions
inline struct thread_info *current_thread_info(void) __attribute__ ((__const__)); /* Given a task stack pointer, you can find it's task structure * just by masking it to the 8K boundary. */ static inline struct thread_info *current_thread_info(void) { struct thread_info *ti; __asm__("%0 = sp;": "=&d"(ti): ); return (struct thread_info *)((long)ti & ~8191UL); } /* thread information allocation */ #define alloc_thread_info(tsk) ((struct thread_info *) \ __get_free_pages(GFP_KERNEL, 1)) #define free_thread_info(ti) free_pages((unsigned long) (ti), 1) #endif /* __ASSEMBLY__ */ /* * Offsets in thread_info structure, used in assembly code */ #define TI_TASK 0 #define TI_EXECDOMAIN 4 #define TI_FLAGS 8 #define TI_CPU 12 #define TI_PREEMPT 16 #define PREEMPT_ACTIVE 0x4000000 /* * thread information flag bit numbers */ #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ #define TIF_SIGPENDING 2 /* signal pending */ #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling TIF_NEED_RESCHED */ #define TIF_MEMDIE 5 #define TIF_RESTORE_SIGMASK 6 /* restore signal mask in do_signal() */ #define TIF_FREEZE 7 /* is freezing for suspend */ /* as above, but as bit values */ #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) #define _TIF_FREEZE (1<<TIF_FREEZE) #define _TIF_WORK_MASK 0x0000FFFE /* work to do on interrupt/exception return */ #endif /* __KERNEL__ */ #endif /* _ASM_THREAD_INFO_H */