aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/segment.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2012-10-27 09:28:58 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-10-30 17:34:20 -0400
commit8fcff5f13773aa3898df1d13a1615d468079cb15 (patch)
tree6ac1aac693b076871edfa4855635b66bde74a832 /arch/parisc/include/asm/segment.h
parentc9c55d9211150b589d2d39a45cf5f96c70a51a47 (diff)
GPIO: mvebu-gpio: Don't initialize the mask_cache
Due to the SMP nature of some of the chips, which have per CPU registers, the driver does not use the generic irq_gc_mask_set_bit() & irq_gc_mask_clr_bit() functions, which only support a single register. The driver has its own implementation of these functions, which can pick the correct register depending on the CPU being used. The functions do however use the gc->mask_cache value. The call to irq_setup_generic_chip() was passing IRQ_GC_INIT_MASK_CACHE, which caused the gc->mask_cache to be initialized to the contents of some random register. This resulted in unexpected interrupts been delivered from random GPIO lines. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Jamie Lentin <jm@lentin.co.uk> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Michael Walle <michael@walle.cc> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/parisc/include/asm/segment.h')
0 files changed, 0 insertions, 0 deletions
litmus-rt-ext-res.git/commit/kernel/time.c?id=71abb3af62dfa52930755f3b6497eafbe1d6ec85'>71abb3af62df
e3d5a27d5862
1da177e4c3f4



bdc807871d58

6fa6c3b1d178
1da177e4c3f4














58fd3aa28893
1da177e4c3f4
f20bf6125605
1da177e4c3f4

2008220879af
e3d5a27d5862
1da177e4c3f4
e3d5a27d5862
1da177e4c3f4








6fa6c3b1d178
58fd3aa28893
1da177e4c3f4


















58fd3aa28893

1da177e4c3f4














84e345e4e209





1da177e4c3f4

6fa6c3b1d178
1da177e4c3f4

6fa6c3b1d178
1da177e4c3f4


bdc807871d58
1da177e4c3f4




77933d7276ee
1da177e4c3f4
c30bd09915ea

bd45b7a385c5
84e345e4e209
7859e404ae73


c30bd09915ea
1da177e4c3f4












1e6d767924c7
1da177e4c3f4



951069e311a2
718bcceb5ad7

1da177e4c3f4




1da177e4c3f4
2c6221483169
1da177e4c3f4






1da177e4c3f4
1da177e4c3f4


58fd3aa28893

1da177e4c3f4


















58fd3aa28893
1da177e4c3f4













1da177e4c3f4



8ba8e95ed14a
1da177e4c3f4








753e9c5cd9b1





af3b56289be1
753e9c5cd9b1





bdc807871d58
b9095fd8a7f4
bdc807871d58


753e9c5cd9b1



af3b56289be1
753e9c5cd9b1





bdc807871d58
b9095fd8a7f4
bdc807871d58


753e9c5cd9b1



1da177e4c3f4
8ba8e95ed14a
1da177e4c3f4
8ba8e95ed14a
1da177e4c3f4
8ba8e95ed14a
1da177e4c3f4



3eb056764dd8
1da177e4c3f4


















753be6222728











3eb056764dd8
753be6222728


f4818900fa3e


753be6222728
f4818900fa3e




753be6222728










199e7056895c

753be6222728










bdc807871d58
753be6222728

12e09337fe23
753be6222728

12e09337fe23





753be6222728



12e09337fe23
753be6222728





7c3f944e29c0
753be6222728
f8f46da3b4cb





df869b630d9d
f8f46da3b4cb

f8bd2258e2d5
f8f46da3b4cb
88fc3897e321


f8bd2258e2d5





f8f46da3b4cb


85795d64eddd
f8f46da3b4cb






df869b630d9d
f8f46da3b4cb








b7aa0bf70c4a
f8f46da3b4cb
8b9365d753d9
41cf54455da5












8b9365d753d9

41cf54455da5



8b9365d753d9
41cf54455da5
8b9365d753d9
41cf54455da5




8b9365d753d9

41cf54455da5









8b9365d753d9

41cf54455da5


bdc807871d58
41cf54455da5



b9095fd8a7f4
bdc807871d58
8b9365d753d9












b9095fd8a7f4
bdc807871d58
8b9365d753d9






































f8bd2258e2d5



8b9365d753d9




























456a09dce9ca
8b9365d753d9






f8bd2258e2d5
8b9365d753d9
f8bd2258e2d5


8b9365d753d9
456a09dce9ca
8b9365d753d9



cbbc719fccdb
8b9365d753d9

6ffc787a4492


8b9365d753d9
6ffc787a4492
8b9365d753d9
71abb3af62df
8b9365d753d9










8b9365d753d9




71abb3af62df
8b9365d753d9






6ffc787a4492
71abb3af62df
ec03d7073971
71abb3af62df
ec03d7073971

6ffc787a4492
8b9365d753d9





71abb3af62df
8b9365d753d9


8b9365d753d9




71abb3af62df
8b9365d753d9
71abb3af62df
8b9365d753d9





71abb3af62df
8b9365d753d9
8b9365d753d9

b7b20df91d43
a1dabb6bfffc
b7b20df91d43










a1dabb6bfffc
b7b20df91d43















a1dabb6bfffc

















df0cc0539b41
















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714










                                                                       
  
                                 
                                                                                 














                                                                         
                         
                        
                             
                                      
                        


                           
                         
                         



                        

                      
  














                                                                             
                                            
 
                                 

                   
                                     
                                       
         
                                          








                                                                    
 
                                             


















                                          

                                                          














                                                              





                                                                            

                                                                   
  

                                                                     
                                                                     


                                                                     
                                                                 




                                                                         
                                   
 

                                         
 
                                              


                                                           
         












                                                                      
                                                                             



                                 
                                      

                               




                                         
                             
                                     






                                             
                                           


                 

                                                          


















                                                                             
                                                       













                                                                               



                                   
                                                                         








                                                       





                                                     
                                                    





                                                                 
                        
                                                          


                                                     



                                
                                                    





                                                                 
                        
                                                          


                                                     



                                
   
                                                      
               
                            
  
                                                                            



                                                                            
                                                         


















                                                                    











                                                                  
                                                                   


                                                                    


                                                         
 




                                                                         










                                                                     

                      










                                                                          
                                   

                                                          
                                                                       

                                      





                                                                    



                                     
                                      





                                     
                                       
 





                                                             
                                              

                           
                
 


                                                





                                                          


                  
                              






                                                            
                                            








                                                     
                             
 
  












                                                                    

                                                    



                                                  
                                        
 
                                              




                                                                     

                                                                   









                                                                     

                                       


                                                                
                                



                                                                        
                                                        
                                    












                                                                   
                                                        
                                    






































                                                                        



                                                             




























                                                                        
                                  






                                                                           
                
 


                                                             
 
                                  



                                                  
                                           

                                               


                                  
                                  
       
     
                                                                   










                                                 




                                                         
                                             






                                               
                 
                                     
                   
                                     

                           
       





                                                              
                                                             


                 




                                     
                                                  
                          
                                                              





                                                                         
                                                                               
      

 
   
                                                         










                                                                           
                             















                                                                            

















                                                                           
















                                                               
/*
 *  linux/kernel/time.c
 *
 *  Copyright (C) 1991, 1992  Linus Torvalds
 *
 *  This file contains the interface functions for the various
 *  time related system calls: time, stime, gettimeofday, settimeofday,
 *			       adjtime
 */
/*
 * Modification history kernel/time.c
 *
 * 1993-09-02    Philip Gladstone
 *      Created file with time related functions from sched/core.c and adjtimex()
 * 1993-10-08    Torsten Duwe
 *      adjtime interface update and CMOS clock write code
 * 1995-08-13    Torsten Duwe
 *      kernel PLL updated to 1994-12-13 specs (rfc-1589)
 * 1999-01-16    Ulrich Windl
 *	Introduced error checking for many cases in adjtimex().
 *	Updated NTP code according to technical memorandum Jan '96
 *	"A Kernel Model for Precision Timekeeping" by Dave Mills
 *	Allow time_constant larger than MAXTC(6) for NTP v4 (MAXTC == 10)
 *	(Even though the technical memorandum forbids it)
 * 2004-07-14	 Christoph Lameter
 *	Added getnstimeofday to allow the posix timer functions to return
 *	with nanosecond accuracy
 */

#include <linux/export.h>
#include <linux/timex.h>
#include <linux/capability.h>
#include <linux/timekeeper_internal.h>
#include <linux/errno.h>
#include <linux/syscalls.h>
#include <linux/security.h>
#include <linux/fs.h>
#include <linux/math64.h>
#include <linux/ptrace.h>

#include <asm/uaccess.h>
#include <asm/unistd.h>

#include "timeconst.h"

/*
 * The timezone where the local system is located.  Used as a default by some
 * programs who obtain this value by using gettimeofday.
 */
struct timezone sys_tz;

EXPORT_SYMBOL(sys_tz);

#ifdef __ARCH_WANT_SYS_TIME

/*
 * sys_time() can be implemented in user-level using
 * sys_gettimeofday().  Is this for backwards compatibility?  If so,
 * why not move it into the appropriate arch directory (for those
 * architectures that need it).
 */
SYSCALL_DEFINE1(time, time_t __user *, tloc)
{
	time_t i = get_seconds();

	if (tloc) {
		if (put_user(i,tloc))
			return -EFAULT;
	}
	force_successful_syscall_return();
	return i;
}

/*
 * sys_stime() can be implemented in user-level using
 * sys_settimeofday().  Is this for backwards compatibility?  If so,
 * why not move it into the appropriate arch directory (for those
 * architectures that need it).
 */

SYSCALL_DEFINE1(stime, time_t __user *, tptr)
{
	struct timespec tv;
	int err;